test_the_written_entry_is_shaped_like_a_registration

Tests › tests/test_init.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. entry = server_entry(CONSOLE_SCRIPT)
→

Then

  1. ✓ entry["command"].endswith(CONSOLE_SCRIPT) holds
  2. ✓ entry["type"] equals "stdio"
  3. ✓ entry["args"] equals []

tests/test_init.py:1060 · its file's page

What it checks (3)

  1. assert entry["command"].endswith(CONSOLE_SCRIPT) observes server_entry via entry
  2. assert entry["type"] == "stdio", "a local server is launched over stdio" observes server_entry via entry
  3. assert entry["args"] == [], "a written entry must not pin a target" observes server_entry via entry

Where the product reaches it

  • main → init_main → _register → server_entry (flow)

Call flow

test_the_written_entry_is_shaped_like_a_registration→server_entry

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_the_written_entry_is_shaped_like_a_registration · 3 checksserver_entryREQ-DDB-MCP-001 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CLI-002catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.