test: isolate ordinary unit runs from ambient credentials and provider I/O
Assistant: codex Assistant-Model: gpt-6.1-sol Assistant-Session: 01a1468b-63fa-7710-85dc-8f2e16b3ebfa
This commit is contained in:
parent
922c26da0f
commit
b593c87983
14 changed files with 592 additions and 6 deletions
|
|
@ -273,7 +273,11 @@ class TestPepStanceMap:
|
|||
# --- classification coverage (v0.8 §6.4 obligation 3) -------------------------
|
||||
|
||||
def test_published_coverage_equals_measured_coverage():
|
||||
"""The published figure must equal what the repo actually measures.
|
||||
"""The published figure must equal its explicit public declaration snapshot.
|
||||
|
||||
This is a deterministic source check, not a claim about current estate state.
|
||||
Live measurement remains scripts/report_coverage.py with an explicit estate
|
||||
root; tests never treat the developer HOME as an authority or fixture.
|
||||
|
||||
ops-warden asked gate-house for §13.1's Coverage column and its figures are
|
||||
that column's first entries, so their accuracy is ours to hold. The register
|
||||
|
|
@ -295,7 +299,7 @@ def test_published_coverage_equals_measured_coverage():
|
|||
published = yaml.safe_load((repo / "pep-stance.yaml").read_text())[
|
||||
"classification_coverage"
|
||||
]
|
||||
measured = module.measure()
|
||||
measured = module.measure(repo / "tests/fixtures/workload-coverage")
|
||||
|
||||
for population in ("signing_targets", "routing_lanes"):
|
||||
assert published[population] == measured[population], population
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue