MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_custom_mount_path

Function test_custom_mount_path

tests/test_serve_http.py:144–150  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

142
143
144def test_custom_mount_path(tmp_path):
145 app = serve_mod._build_http_app(_graph_file(tmp_path), path="/graph", json_response=True)
146 with _client(app) as client:
147 ok = client.post("/graph", headers=_MCP_HEADERS, json=_INIT_BODY)
148 assert ok.status_code == 200
149 missing = client.post("/mcp", headers=_MCP_HEADERS, json=_INIT_BODY)
150 assert missing.status_code == 404
151
152
153def test_tools_list_over_http(tmp_path):

Callers

nothing calls this directly

Calls 3

_clientFunction · 0.85
_graph_fileFunction · 0.70
postMethod · 0.45

Tested by

no test coverage detected