kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-17 21:25:12 +02:00
parent fe344c2a4f
commit d53c4096fd
9 changed files with 343 additions and 22 deletions

View file

@ -83,16 +83,18 @@ class TestDetectTestCommand:
assert _detect_test_command(str(tmp_path)) is None
def test_pyproject_toml_returns_pytest(self, tmp_path):
"""pyproject.toml → возвращает 'pytest'."""
"""pyproject.toml → возвращает sys.executable -m pytest (decision KIN-109)."""
import sys
from agents.runner import _detect_test_command
(tmp_path / "pyproject.toml").write_text("[tool.pytest.ini_options]\n")
assert _detect_test_command(str(tmp_path)) == "pytest"
assert _detect_test_command(str(tmp_path)) == f"{sys.executable} -m pytest"
def test_setup_py_returns_pytest(self, tmp_path):
"""setup.py → возвращает 'pytest'."""
"""setup.py → возвращает sys.executable -m pytest (decision KIN-109)."""
import sys
from agents.runner import _detect_test_command
(tmp_path / "setup.py").write_text("from setuptools import setup\nsetup(name='x')\n")
assert _detect_test_command(str(tmp_path)) == "pytest"
assert _detect_test_command(str(tmp_path)) == f"{sys.executable} -m pytest"
def test_tsconfig_returns_npx_tsc(self, tmp_path):
"""tsconfig.json → возвращает 'npx tsc --noEmit'."""