test_unregister_is_tolerant_when_never_registered¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
Dropping tier-1 when it is not there is a no-op, not an error.
Verifies REQ-DDB-MCP-001 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
mcp, _state = server
When
unregister_query_tools(mcp)
Then
- ✓ set(unregister_query_tools(mcp)) equals set(TIER1_TOOLS)
- ✓ unregister_query_tools(mcp) equals []
tests/test_mcp_server.py:564 · its file's page
What it checks (2)
assert set(unregister_query_tools(mcp)) == set(TIER1_TOOLS), ( "precondition: construction registers tier-1, so the first call removes it" )observesunregister_query_toolsassert unregister_query_tools(mcp) == [], "a second removal is a no-op"observesunregister_query_tools
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 (4)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-MCP-001 | 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-003 measured