repo_contract sweep tests: narrow the no-cover pragma
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file length / file-length (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Krzysztof Rudnicki 2026-11-19 13:30:55 +01:00
parent 0e2570d272
commit db58478669

View File

@ -51,7 +51,7 @@ def no_walk(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
monkeypatch.setenv("HOME", str(tmp_path / "home"))
def boom(roots: list[Path]) -> list[Path]:
raise AssertionError(f"walked {roots}")
raise AssertionError(f"walked {roots}") # pragma: no cover - regression only
monkeypatch.setattr("repo_contract.sweep.find_repos", boom)
return tmp_path / "default" / "SWEEP.md"