test_the_written_entry_is_shaped_like_a_registration¶
Tests › tests/test_init.py
What this test is for
Why it exists
REPLACES "the dogfood pin", which compared this repo's own committed `.mcp.json` against what `init` produces. That file is gone: it registered the same server, under the same name, pointed at the same place, as the user-scope entry already did — a second registration and no capability.
Verifies REQ-DDB-CLI-002
Given
- —
When
entry = server_entry(CONSOLE_SCRIPT)
Then
- ✓ entry["command"].endswith(CONSOLE_SCRIPT) holds
- ✓ entry["type"] equals "stdio"
- ✓ entry["args"] equals []
tests/test_init.py:1060 · its file's page
What it checks (3)
assert entry["command"].endswith(CONSOLE_SCRIPT)observesserver_entryviaentryassert entry["type"] == "stdio", "a local server is launched over stdio"observesserver_entryviaentryassert entry["args"] == [], "a written entry must not pin a target"observesserver_entryviaentry
Where the product reaches it
main→init_main→_register→server_entry(flow)
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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CLI-002 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-001 measured