gabriel / musehub public

test_mwp6_wire_suite_enabled.py file-level

at sha256:f · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:e fix(9A-4 F7): env alias + staging secrets for overseer provenance gate.… · aaronrene · Jul 13, 2026
1 """MWP6_00 — anti-skip gate: no wire-protocol flux skips remain in tests/.
2
3 This test is the canary for the entire MWP-6 revival effort. It scans
4 every .py file under tests/ and asserts that none contain the flux-skip
5 marker that was mass-applied while the wire protocol was in flux.
6
7 If this test is RED, a new skip was introduced or an old one was not
8 removed. Fix the offending file — do not skip this test.
9 """
10 from __future__ import annotations
11
12 import pathlib
13
14 import pytest
15
16 pytestmark = pytest.mark.wire
17
18 _TESTS_DIR = pathlib.Path(__file__).parent
19 _FLUX_SKIP = 'pytest.mark.skip(reason="muse wire protocol in flux")'
20
21
22 def test_no_flux_skips_remain() -> None:
23 """No test file may contain the wire-protocol flux skip marker."""
24 this_file = pathlib.Path(__file__).name
25 offenders: list[str] = []
26 for path in sorted(_TESTS_DIR.glob("*.py")):
27 if path.name == this_file:
28 continue
29 if _FLUX_SKIP in path.read_text():
30 offenders.append(path.name)
31
32 assert not offenders, (
33 "The following test files still contain the wire-protocol flux skip "
34 "and must be revived or deleted with written justification:\n"
35 + "\n".join(f" - {f}" for f in offenders)
36 )