test_a_stated_path_replays_as_a_path¶
Tests › tests/test_tiers.py
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
db = tmp_path / "clew.db"stated = str(tmp_path / "locks.yaml")
When
_stamp_manifest(db, SECTION_LOCKS, resolve_document(explicit=stated))args = _manifest_namespace()_replay_manifest_statements(args, db)
Then
- ✓ _replay_manifest_statements(args, db) equals [SECTION_LOCKS]
- ✓ args.locks equals stated
tests/test_tiers.py:620 · its file's page
What it checks (2)
assert _replay_manifest_statements(args, db) == [SECTION_LOCKS]observes_replay_manifest_statementsassert args.locks == statedobserves_manifest_namespaceviaargs
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_statementsWhat 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.
Also reaches 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-MCP-001 measured
- REQ-DDB-PIPE-005 measured