(self)
| 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): |
nothing calls this directly
no test coverage detected