test_corrupt_registry_is_tolerated¶
Tests › tests/test_mcp_server.py
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
home = tmp_path / "state"home.mkdir()(home / st.REGISTRY_NAME).write_text("{not json")
When
- —
Then
- ✓ st.TargetRegistry(home).targets() equals []
tests/test_mcp_server.py:2109 · its file's page
What it checks (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)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-MCP-003 | catalog | unknown |
| REQ-DDB-QUERY-006 | catalog | unknown |
| REQ-DDB-QUERY-008 | catalog | unknown |
| REQ-DDB-QUERY-009 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-001 measured