MCPcopy Create free account
hub / github.com/anthropics/defending-code-reference-harness / test_done

Function test_done

tests/test_skill_checkpoint.py:69–73  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

67
68
69def test_done(tmp_path):
70 state = tmp_path / ".s-state"
71 assert ckpt.main(["done", str(state), "5"]) == 0
72 prog = json.loads((state / "progress.json").read_text())
73 assert prog["status"] == "complete" and prog["phase_done"] == 5
74
75
76def test_load_no_state(tmp_path, capsys):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected