From 8b81f6e937f8e7d003bd0fe08709d8363f37155a Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 30 Jul 2026 15:16:46 +0100 Subject: [PATCH] chore: de-instance fixture paths in test_worktree_drift (tenant firewall) The new test file (PyAutoHeart#124) used 'PyAutoLabs'/'PyAutoLabs-wt' in synthetic fixture paths, tripping the tenant firewall in unlisted files; neutral names behave identically. Caught by re-running the firewall over the audit's own output. PyAutoLabs/PyAutoHands#217. 328 passed. Co-Authored-By: Claude Fable 5 --- tests/test_worktree_drift.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_worktree_drift.py b/tests/test_worktree_drift.py index 25c0abe9..8fea3a88 100644 --- a/tests/test_worktree_drift.py +++ b/tests/test_worktree_drift.py @@ -47,7 +47,7 @@ def test_nonexistent_claim_is_missing(tmp_path): def test_symlinked_canonical_dirt_counted_once_and_not_task_dirt(tmp_path): - canonical = _git_repo(tmp_path / "PyAutoLabs" / "PyAutoMind", dirty=True) + canonical = _git_repo(tmp_path / "canonical" / "PyAutoMind", dirty=True) wt_root = tmp_path / "wt-root" for task in ("task-a", "task-b"): d = wt_root / task @@ -98,9 +98,9 @@ def test_prose_worktree_values_are_ignored(tmp_path): def test_tilde_claims_are_expanded(tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) - wt = tmp_path / "Code" / "PyAutoLabs-wt" / "task-a" + wt = tmp_path / "Code" / "wt-root" / "task-a" _git_repo(wt / "RepoA") - active = _registry(tmp_path / "active.md", {"task-a": "~/Code/PyAutoLabs-wt/task-a"}) - out = wd.scan(tmp_path / "Code" / "PyAutoLabs-wt", active, tmp_path / "parked.md") + active = _registry(tmp_path / "active.md", {"task-a": "~/Code/wt-root/task-a"}) + out = wd.scan(tmp_path / "Code" / "wt-root", active, tmp_path / "parked.md") assert out["missing"] == [] assert out["orphans"] == []