MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_empty_tool_name_rejected

Method test_empty_tool_name_rejected

tests/apps/test_bridge.py:262–274  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

260
261 @pytest.mark.asyncio
262 async def test_empty_tool_name_rejected(self):
263 bridge, _ = _make_bridge()
264 msg = json.dumps(
265 {
266 "jsonrpc": "2.0",
267 "id": 12,
268 "method": "tools/call",
269 "params": {"name": "", "arguments": {}},
270 }
271 )
272 resp = await bridge.handle_message(msg)
273 parsed = json.loads(resp)
274 assert parsed["error"]["code"] == -32602
275
276 @pytest.mark.asyncio
277 async def test_resource_read_exception(self):

Callers

nothing calls this directly

Calls 2

handle_messageMethod · 0.80
_make_bridgeFunction · 0.70

Tested by

no test coverage detected