test_unregister_is_tolerant_when_never_registered

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

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

  1. mcp, _state = server
→

When

  1. unregister_query_tools(mcp)
→

Then

  1. ✓ set(unregister_query_tools(mcp)) equals set(TIER1_TOOLS)
  2. ✓ unregister_query_tools(mcp) equals []

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

What it checks (2)

  1. assert set(unregister_query_tools(mcp)) == set(TIER1_TOOLS), ( "precondition: construction registers tier-1, so the first call removes it" ) observes unregister_query_tools
  2. assert unregister_query_tools(mcp) == [], "a second removal is a no-op" observes unregister_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

test_unregister_is_tolerant_when_never_registered→unregister_query_tools

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_unregister_is_tolerant_when_never_registered · 2 checksunregister_query_toolsREQ-DDB-MCP-003 · measured

Requirements it verifies (4)

requirementlinked byimplementers exercised
REQ-DDB-MCP-001catalogunknown
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.