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

Method test_raises_when_no_call_tool

tests/chat/test_testing.py:267–275  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265
266 @pytest.mark.asyncio
267 async def test_raises_when_no_call_tool(self):
268 from mcp_cli.chat.testing import TestChatContext
269
270 sm = _make_stream_manager(has_call_tool=False)
271 mm = _make_model_manager()
272 ctx = TestChatContext(sm, mm)
273
274 with pytest.raises(ValueError, match="doesn't support tool execution"):
275 await ctx.execute_tool("any_tool", {})
276
277
278# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

execute_toolMethod · 0.95
TestChatContextClass · 0.90
_make_stream_managerFunction · 0.85
_make_model_managerFunction · 0.70

Tested by

no test coverage detected