test_corrupt_registry_is_tolerated

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

What this test is for

Why it exists

A damaged registry file must not take the server down.

Verifies REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009

Given

  1. home = tmp_path / "state"
  2. home.mkdir()
  3. (home / st.REGISTRY_NAME).write_text("{not json")
→

When

  1. —
→

Then

  1. ✓ st.TargetRegistry(home).targets() equals []

tests/test_mcp_server.py:2109 · its file's page

What it checks (1)

  1. assert st.TargetRegistry(home).targets() == [] not attributed

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 (4)

requirementlinked byimplementers exercised
REQ-DDB-MCP-003catalogunknown
REQ-DDB-QUERY-006catalogunknown
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown
Also reaches 1 requirement

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