Files
Jyotisha/tests/test_release_hygiene_contract.py
T
2026-08-05 11:13:34 +08:00

17 lines
826 B
Python

from pathlib import Path
def test_release_profile_requires_privacy_and_renderer_probes() -> None:
source = (Path(__file__).resolve().parents[1] / "scripts" / "run_quality_gate.py").read_text(encoding="utf-8")
assert '"scripts/public_release_privacy_scan.py", "--json"' in source
assert '"scripts/report_renderer_isolation_poc.py", "--strict"' in source
assert '"scripts/three_engine_parity_replay_validator.py"' in source
assert '"--require-external-parity"' in source
assert 'parity_command.append("--require-pass")' in source
def test_release_dasha_audit_uses_runnable_public_fixture() -> None:
source = (Path(__file__).resolve().parents[1] / "scripts" / "run_quality_gate.py").read_text(encoding="utf-8")
assert '"REDACTED_YEAR"' not in source
assert '"synthetic_fixture"' in source