Skip to content

Commit d0aa65d

Browse files
Lukas Geigerclaude
andcommitted
fix(tests): skip local-only metadata contract when internal docs are absent
test_current_metadata_marks_old_handoff_as_historical_via_current_state las STATE.md und CLAUDE.md unbedingt. Beide sind in .gitignore als "internal working docs (not part of the public release)" gefuehrt und fehlen im CI-Checkout -- der Test konnte dort nie gruen werden und hielt beide Python-Matrix-Jobs rot. Der Check bleibt lokal voll wirksam und wird im Checkout uebersprungen. Verifiziert: 329 passed, 1 skipped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QnnBmjHnUxYp9ZKcFko4A4
1 parent d7ca865 commit d0aa65d

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

tests/test_taskplan_contracts.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from pathlib import Path
44

5+
import pytest
6+
57

68
ROOT = Path(__file__).resolve().parents[1]
79

@@ -24,8 +26,16 @@ def test_repair_entrypoint_states_the_bounded_automatic_contract():
2426

2527

2628
def test_current_metadata_marks_old_handoff_as_historical_via_current_state():
27-
state = (ROOT / "STATE.md").read_text(encoding="utf-8")
28-
claude = (ROOT / "CLAUDE.md").read_text(encoding="utf-8")
29-
30-
assert "Stand: 2026-07-22 · Version 0.8.0" in state
31-
assert "version: 0.8.0" in claude
29+
# STATE.md und CLAUDE.md sind "internal working docs" und bewusst gitignored
30+
# (.gitignore, Abschnitt "not part of the public release"). Im CI-Checkout
31+
# existieren sie daher nicht -- dort ist dieser lokale Konsistenzcheck
32+
# gegenstandslos und wird uebersprungen statt fehlzuschlagen.
33+
state_path = ROOT / "STATE.md"
34+
claude_path = ROOT / "CLAUDE.md"
35+
36+
missing = [p.name for p in (state_path, claude_path) if not p.exists()]
37+
if missing:
38+
pytest.skip(f"lokal-only (gitignored), im Checkout nicht vorhanden: {', '.join(missing)}")
39+
40+
assert "Stand: 2026-07-22 · Version 0.8.0" in state_path.read_text(encoding="utf-8")
41+
assert "version: 0.8.0" in claude_path.read_text(encoding="utf-8")

0 commit comments

Comments
 (0)