Match watchdog Git fixtures to the checkout ignore policy

The first exact offline suite passed the metadata cases but the clean-tree assertion saw Python import bytecode because the fixture omitted the real .gitignore. Copy that existing policy into the fixture, retaining the source/no-mutation assertion.

Contract-Neutral: Fixture setup now copies the existing repository ignore policy; runtime and deployment contracts are unchanged.
Change-source: pulse-maintainer
This commit is contained in:
pulse-triage[bot]
2026-10-01 03:05:17 +01:00
parent 4101c37db5
commit e2fb6b2fae
@@ -37,7 +37,9 @@ class RehearsalSourceTest(unittest.TestCase):
self.git("config", "user.email", "fixture@example.invalid")
self.git("config", "user.name", "Fixture")
self.git("config", "core.hooksPath", "/dev/null")
for name in ("scripts/release_control/control_plane.py",
# Match the real checkout's generated-file policy, including Python's
# import cache, while still detecting any uncommitted source change.
for name in (".gitignore", "scripts/release_control/control_plane.py",
"scripts/release_control/repo_file_io.py",
"scripts/release_control/resolve_release_promotion.py",
"docs/release-control/control_plane.json"):