Isolate historical rejection fixture from the installed fleet hook
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Reject generated-only commits / generated-commit-guard (push) Successful in 6s
Python Tests / pytest (push) Successful in 23s

This commit is contained in:
codex 2026-10-11 23:31:09 +02:00
parent 016047f81e
commit 30f5072051

View file

@ -31,6 +31,11 @@ def test_ci_checks_each_commit_in_range(tmp_path):
def git(*args):
return subprocess.check_output(["git", *args], cwd=tmp_path).decode().strip()
git("init", "-q")
# This fixture deliberately creates a rejected historical commit so CI's
# range checker can inspect it. Isolate it from the workstation's real hook.
hooks = tmp_path / "fixture-hooks"
hooks.mkdir()
git("config", "core.hooksPath", str(hooks))
git("config", "user.name", "Test")
git("config", "user.email", "test@example.test")
(tmp_path / "source.py").write_text("source\n")