test_the_tool_clause_names_exactly_what_the_server_serves¶
Tests › tests/test_docs_current.py
What this test is for
Why it exists
Generated from the description files the server loads: tools, then prompts.
Given
sys.path.insert(0, str(REPO / "scripts"))
When
clause = tools_clause()for name in (*TIER1_TOOLS, *TIER0_TOOLS, *PROMPTS): assert f"`{name}`" in clause, name
Then
- ✓ clause.replace("three", "3") contains f"{len(TIER1_TOOLS) + len(TIER0_TOOLS)} tools"
tests/test_docs_current.py:25 · its file's page
What it checks (2)
assert f"`{name}`" in clause, nameobservestools_clauseviaclauseassert f"{len(TIER1_TOOLS) + len(TIER0_TOOLS)} tools" in clause.replace("three", "3")observestools_clauseviaclause
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-001 measured
- REQ-DDB-WIKI-054 inferred