test_register_server_marshals_full_config_to_json

Tests › tests/unit/test_pythonic_facade.py

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. fake_handle = ctypes.c_void_p(0xFEED)
→

When

  1. rc = mcp.register_server( fake_handle, name="docs", command="/usr/local/bin/docs-mcp", args=["--mode=server"], env={"DOCS_DB": "/srv/docs.db"}, )
  2. _bindings.entropic_register_mcp_server.assert_called_once()
  3. call_args = _bindings.entropic_register_mcp_server.call_args
  4. config = json.loads(call_args.args[2].decode("utf-8"))
→

Then

  1. · rc equals 0
  2. · call_args.args[0] is fake_handle
  3. · call_args.args[1] equals b"docs"
  4. · config["command"] equals "/usr/local/bin/docs-mcp"
  5. · config["args"] equals ["--mode=server"]
  6. · config["env"] equals {"DOCS_DB": "/srv/docs.db"}
  7. · config["transport"] equals "stdio"

tests/unit/test_pythonic_facade.py:189 · its file's page

What it checks (8)

  1. assert rc == 0 observes register_server via rc
  2. _bindings.entropic_register_mcp_server.assert_called_once() not attributed
  3. assert call_args.args[0] is fake_handle not attributed
  4. assert call_args.args[1] == b"docs" not attributed
  5. assert config["command"] == "/usr/local/bin/docs-mcp" not attributed
  6. assert config["args"] == ["--mode=server"] not attributed
  7. assert config["env"] == {"DOCS_DB": "/srv/docs.db"} not attributed
  8. assert config["transport"] == "stdio" not attributed

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_register_server_marshals_full_config_to_json→register_server

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_register_server_marshals_full_config_to_json · 8 checksregister_serverentropic_register_mcp_serverREQ-ABI-002 · inferredregister_serverentropic_register_mcp_serverREQ-API-005 · inferredregister_serverentropic_register_mcp_serverREQ-MCP-025 · inferredregister_serverentropic_register_mcp_serverresolve_registration_targetREQ-MCP-027 · inferred
Also reaches 4 requirements

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