test_declared_manifest_invalid_dispatch_mode_fails_closed

Tests › tests/test_r1_richness.py

passed Passed in the packaged run.

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

  1. db = _make_db(tmp_path, [(1, "w", 1, 1), (2, "r", 2, 2)])
  2. manifest = tmp_path / "model.yaml"
  3. manifest.write_text( "keys:\n" " - name: K\n" " dispatch_mode: asynchronous\n" # INVALID " writers: [w]\n" " readers: [r]\n", )
→

When

  1. import_shared_key_edges_declared(db, manifest)
  2. message = str(exc.value)
→

Then

  1. ✓ raises DeclarationError
  2. ✓ message contains "model.yaml"
  3. ✓ message contains "'asynchronous'"
  4. ✓ message contains "inline, queued, keyed, unknown"

tests/test_r1_richness.py:757 · its file's page

What it checks (3)

  1. assert "model.yaml" in message not attributed
  2. assert "'asynchronous'" in message not attributed
  3. assert "inline, queued, keyed, unknown" in message 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_declared_manifest_invalid_dispatch_mode_fails_closed→import_shared_key_edges_declared

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_declared_manifest_invalid_dispatch_mode_fails_closed · 3 checksimport_shared_key_edges_declared_definition_preferring_name_indexREQ-DDB-QUERY-003 · inferredimport_shared_key_edges_declared… 3 calls …_coerce_edge_triggeredREQ-DDB-SCHEMA-002 · catalogimport_shared_key_edges_declaredREQ-DDB-SCHEMA-005 · measuredimport_shared_key_edges_declared_ensure_shared_key_edges_tableREQ-DDB-SCHEMA-007 · catalog

Requirements it verifies (5)

requirementlinked byimplementers exercised
REQ-DDB-SCHEMA-001catalogunknown
REQ-DDB-SCHEMA-002catalog1 of 2: _coerce_edge_triggered
REQ-DDB-SCHEMA-003catalogunknown
REQ-DDB-SCHEMA-004catalogunknown
REQ-DDB-SCHEMA-007catalog1 of 3: _ensure_shared_key_edges_table
Also reaches 3 requirements

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