test_dispatch_is_validated_by_its_own_loader_not_a_second_copy

Tests › tests/test_buildoptions.py

passed Passed in the packaged run.

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

  1. args = _args()
→

When

  1. bo.apply_options(args, {"dispatch": {"interfacs": []}}, Path("/repo"))
  2. load_dispatch_manifest(args.dispatch)
→

Then

  1. ✓ bo.MANIFEST_SCHEMAS does not contain "dispatch"
  2. ✓ bo.MANIFEST_OPTIONS contains "dispatch"
  3. ✓ raises DeclarationError

tests/test_buildoptions.py:400 · its file's page

What it checks (2)

  1. assert "dispatch" not in bo.MANIFEST_SCHEMAS not attributed
  2. assert "dispatch" in bo.MANIFEST_OPTIONS 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

test_dispatch_is_validated_by_its_own_loader_not_a_second_copy→_args→apply_options→load_dispatch_manifest

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_dispatch_is_validated_by_its_own_loader_not_a_second_copy · 2 checksload_dispatch_manifestREQ-DDB-SCHEMA-004 · measuredload_dispatch_manifestdeclaration_originREQ-DDB-SCHEMA-012 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-008catalogunknown
Also reaches 2 requirements

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