(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, check: str)
| 299 | |
| 300 | @pytest.mark.parametrize("check", CHECKS) |
| 301 | def test_precommit_does_not_write_reports(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, check: str) -> None: |
| 302 | monkeypatch.chdir(tmp_path) |
| 303 | skill = _write_skill(tmp_path, "sample-skill") |
| 304 | script = skill / "scripts" / "run.py" |
| 305 | script.parent.mkdir() |
| 306 | script.write_text("print(1)\n", encoding="utf-8") |
| 307 | before = sorted(tmp_path.rglob("*")) |
| 308 | |
| 309 | code, _lines = run_precommit(check, [str(skill / "SKILL.md"), str(script)], min_score=0, cwd=tmp_path) |
| 310 | |
| 311 | assert code == 0 |
| 312 | assert sorted(tmp_path.rglob("*")) == before |
| 313 | |
| 314 | |
| 315 | def test_precommit_fails_when_an_earlier_skill_fails(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected