Retire exercise_status: maturity is the only notion; add CLI tests (RBT-WP-0009-T01)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: sonnet Assistant-Process: 295952@bnt-lap001 Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
This commit is contained in:
parent
b89e8eaa74
commit
6d3414d8b7
29 changed files with 444 additions and 218 deletions
|
|
@ -33,8 +33,10 @@ def test_digest_is_stable_ignores_exercise_status_and_reviews_but_changes_with_c
|
|||
d1 = P.digest(pk)
|
||||
assert d1 == P.digest(pk)
|
||||
text = pk.path.read_text()
|
||||
pk.path.write_text(text.replace("exercise_status: unexercised", "exercise_status: exercised 2026-09-29 by x"))
|
||||
assert P.digest(pk) == d1 # recording an exercise is not a new revision
|
||||
assert "engine: native\n" in text
|
||||
pk.path.write_text(text.replace("engine: native\n", "exercise_status: exercised 2026-09-29 by x\nengine: native\n", 1)) # as an old pack carries it
|
||||
assert P.digest(pk) == d1 # the deprecated field is ignored: dropping it is not a new revision
|
||||
pk.path.write_text(text)
|
||||
M.add_review(pk, "alice", "read it")
|
||||
assert P.digest(pk) == d1 # neither is a review
|
||||
pk.path.write_text(text + "\n# changed\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue