test_a_stated_path_replays_as_a_path

Tests › tests/test_tiers.py

passed Passed in the packaged run.

What this test is for

Why it exists

BOTH INPUT FORMS ARE PERSISTED, because both had the hole (gh#332 shipped the path form). JSON tells them apart with no second key: a path is a string, a document is an object, so the reader cannot get the form wrong.

Given

  1. db = tmp_path / "clew.db"
  2. stated = str(tmp_path / "locks.yaml")
→

When

  1. _stamp_manifest(db, SECTION_LOCKS, resolve_document(explicit=stated))
  2. args = _manifest_namespace()
  3. _replay_manifest_statements(args, db)
→

Then

  1. ✓ _replay_manifest_statements(args, db) equals [SECTION_LOCKS]
  2. ✓ args.locks equals stated

tests/test_tiers.py:620 · its file's page

What it checks (2)

  1. assert _replay_manifest_statements(args, db) == [SECTION_LOCKS] observes _replay_manifest_statements
  2. assert args.locks == stated observes _manifest_namespace via args

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_a_stated_path_replays_as_a_path→_stamp_manifest→resolve_document→_manifest_namespace→_replay_manifest_statements

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_a_stated_path_replays_as_a_path · 2 checksresolve_documentREQ-DDB-CONFIG-006 · measured_stamp_manifestwrite_build_signatureREQ-DDB-CONFIG-007 · measured_replay_manifest_statementsmeta_sectionREQ-DDB-MCP-001 · measured_stamp_manifestwrite_build_signatureREQ-DDB-PIPE-005 · measured
Also reaches 4 requirements

Its run touches their code; that is reach, not proof.