test_dispatch_is_validated_by_its_own_loader_not_a_second_copy¶
Tests › tests/test_buildoptions.py
What this test is for
Why it exists
A second copy of the dispatch schema here would be free to drift from the parser that reads it, and a drifted allow-list refuses correct declarations. `load_dispatch_manifest` already refuses an unknown key at the document level and inside each of its three entry shapes, so the absence of an entry in `MANIFEST_SCHEMAS` is a decision — asserted here together with the refusal that justifies it, so removing one without the other fails.
Verifies REQ-DDB-CONFIG-008
Given
args = _args()
When
bo.apply_options(args, {"dispatch": {"interfacs": []}}, Path("/repo"))load_dispatch_manifest(args.dispatch)
Then
- ✓ bo.MANIFEST_SCHEMAS does not contain "dispatch"
- ✓ bo.MANIFEST_OPTIONS contains "dispatch"
- ✓ raises DeclarationError
tests/test_buildoptions.py:400 · its file's page
What it checks (2)
assert "dispatch" not in bo.MANIFEST_SCHEMASnot attributedassert "dispatch" in bo.MANIFEST_OPTIONSnot 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
test_dispatch_is_validated_by_its_own_loader_not_a_second_copy→_args→apply_options→load_dispatch_manifestWhat 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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-008 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-004 measured
- REQ-DDB-SCHEMA-012 measured