test_mwp6_wire_suite_enabled.py
python
sha256:d035733f21ccff27735fddebfbbe0ed24565a32a22db8de5885402262671ecd2
chore: bump version to 0.2.0rc15 for musehub#113 fix release
Sonnet 4.6
patch
15 days ago
| 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 | ) |
File History
2 commits
sha256:d035733f21ccff27735fddebfbbe0ed24565a32a22db8de5885402262671ecd2
chore: bump version to 0.2.0rc15 for musehub#113 fix release
Sonnet 4.6
patch
15 days ago
sha256:0032d6cfa33bc3c8367436ad768e7dd0e339b4332153160247da8266cb5fa352
Merge branch 'task/version-tags-phase3-server' into dev
Human
17 days ago