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: 4 additions & 3 deletions tests/control_plane/test_research_checkpoint_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,10 @@ def between_read_and_probe(method, params, **kwargs):
if source_moves:
assert not receipt["checkpoint"]["captured"], receipt
assert not destination.exists()
expected_error = ("checkpoint source moved" if mutation_stage == "capture" else
"profile changed" if source_moves == "binding" else "native")
assert expected_error in receipt["checkpoint"]["error"]
expected_clauses = (("checkpoint source moved",) if mutation_stage == "capture" else
("source session", "binding or profile moved", "before sealing")
if source_moves == "binding" else ("native",))
assert all(clause in receipt["checkpoint"]["error"] for clause in expected_clauses)
else:
assert receipt["checkpoint"]["captured"], receipt
manifest = json.loads((destination / "checkpoint.json").read_text())
Expand Down
Loading