Commit d0411ac
committed
test(fetch_tools): rewrite tests to use real MCP mock server
Replace monkeypatch-based tests with integration tests using the
actual MCP protocol via the Hono mock server. This provides more
realistic coverage of the fetch_tools() implementation.
Changes:
- Rename test_toolset_mcp.py to test_fetch_tools.py for clarity
- Use mcp_mock_server fixture for most tests (real MCP protocol)
- Keep monkeypatch tests only for schema normalisation logic
- Add integration marker for MCP server tests
- Add tests for MCP headers, tool creation, and RPC execution
The tests now exercise the full MCP client flow including
_fetch_mcp_tools(), header building, and tool response parsing.1 parent bdde1fa commit d0411ac
2 files changed
+204
-175
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
0 commit comments