test_declared_manifest_invalid_dispatch_mode_fails_closed¶
Tests › tests/test_r1_richness.py
What this test is for
Why it exists
The data-model MANIFEST path fails closed IDENTICALLY to the accessor path.
Verifies REQ-DDB-SCHEMA-001 REQ-DDB-SCHEMA-002 REQ-DDB-SCHEMA-003 REQ-DDB-SCHEMA-004 REQ-DDB-SCHEMA-007
Given
db = _make_db(tmp_path, [(1, "w", 1, 1), (2, "r", 2, 2)])manifest = tmp_path / "model.yaml"manifest.write_text( "keys:\n" " - name: K\n" " dispatch_mode: asynchronous\n" # INVALID " writers: [w]\n" " readers: [r]\n", )
When
import_shared_key_edges_declared(db, manifest)message = str(exc.value)
Then
- ✓ raises DeclarationError
- ✓ message contains "model.yaml"
- ✓ message contains "'asynchronous'"
- ✓ message contains "inline, queued, keyed, unknown"
tests/test_r1_richness.py:757 · its file's page
What it checks (3)
assert "model.yaml" in messagenot attributedassert "'asynchronous'" in messagenot attributedassert "inline, queued, keyed, unknown" in messagenot 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.
Requirements it verifies (5)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-SCHEMA-001 | catalog | unknown |
| REQ-DDB-SCHEMA-002 | catalog | 1 of 2: _coerce_edge_triggered |
| REQ-DDB-SCHEMA-003 | catalog | unknown |
| REQ-DDB-SCHEMA-004 | catalog | unknown |
| REQ-DDB-SCHEMA-007 | catalog | 1 of 3: _ensure_shared_key_edges_table |
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-003 inferred
- REQ-DDB-SCHEMA-005 measured
- REQ-DDB-SCHEMA-012 measured