test_register_server_marshals_full_config_to_json¶
Tests › tests/unit/test_pythonic_facade.py
What this test is for
Why it exists
The test says nothing about why.
Given
fake_handle = ctypes.c_void_p(0xFEED)
When
rc = mcp.register_server( fake_handle, name="docs", command="/usr/local/bin/docs-mcp", args=["--mode=server"], env={"DOCS_DB": "/srv/docs.db"}, )_bindings.entropic_register_mcp_server.assert_called_once()call_args = _bindings.entropic_register_mcp_server.call_argsconfig = json.loads(call_args.args[2].decode("utf-8"))
Then
- · rc equals 0
- · call_args.args[0] is fake_handle
- · call_args.args[1] equals b"docs"
- · config["command"] equals "/usr/local/bin/docs-mcp"
- · config["args"] equals ["--mode=server"]
- · config["env"] equals {"DOCS_DB": "/srv/docs.db"}
- · config["transport"] equals "stdio"
tests/unit/test_pythonic_facade.py:189 · its file's page
What it checks (8)
assert rc == 0observesregister_serverviarc_bindings.entropic_register_mcp_server.assert_called_once()not attributedassert call_args.args[0] is fake_handlenot attributedassert call_args.args[1] == b"docs"not attributedassert config["command"] == "/usr/local/bin/docs-mcp"not attributedassert config["args"] == ["--mode=server"]not attributedassert config["env"] == {"DOCS_DB": "/srv/docs.db"}not attributedassert 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_serverWhat 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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-ABI-002 inferred
- REQ-API-005 inferred
- REQ-MCP-025 inferred
- REQ-MCP-027 inferred