test_a_misspelled_section_refuses_the_build¶
Tests › tests/test_dispatch.py
What this test is for
Why it exists
The hole in the fail-closed promise, closed. An ABSENT section reads as "declared nothing", so every plausible singular/plural slip — `interface:`, `dispatch_table:`, `shared_key_wrapper:` — used to parse to an empty manifest and build GREEN while the author's declaration did nothing, which is indistinguishable from a repo that never declared anything.
Given
- —
When
for typo in ("interface", "dispatch_table", "shared_key_wrapper", "interfacs"): with pytest.raises(DeclarationError) as exc: load_dispatch_manifest({typo: [{"interface": "I", "boundary": True}]}) message = str(exc.value) assert repr(typo) in message assert "interfaces" in message, "the error must name the allowed sections"
Then
- —
tests/test_dispatch.py:750 · its file's page
What it checks (2)
assert repr(typo) in messagenot attributedassert "interfaces" in message, "the error must name the allowed sections"not attributed
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
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-004 measured
- REQ-DDB-SCHEMA-012 measured