Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/test_release_rehearsal.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ def test_real_carry_all_tail_and_refusal_probes(self) -> None:
staged_notes.read_text(encoding="utf-8"))
from verify_release import component_provenance
statement = component_provenance(clone, release, manifest)["statement"]
self.assertIn(statement, (clone / "docs/QUICKSTART.md").read_text(encoding="utf-8"))
# The rehearsal replaces copied provenance claims with the generated statement; a
# predecessor guide without such claims (v0.20.0 onward) needs no authored statement.
authored = re.search(r"^rehearsal: guide: replaced (\d+) copied provenance claims",
transcript, re.MULTILINE)
self.assertEqual((clone / "docs/QUICKSTART.md").read_text(encoding="utf-8").count(statement),
int(authored[1]) if authored else 0, transcript)
summary = clone / "releases" / release / manifest["qualification"]["summary"]
self.assertEqual(hashlib.sha256(summary.read_bytes()).hexdigest(),
manifest["qualification"]["summary_sha256"])
Expand Down
Loading