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

Method test_calls_stream_manager_call_tool

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

Source from the content-addressed store, hash-verified

253
254 @pytest.mark.asyncio
255 async def test_calls_stream_manager_call_tool(self):
256 from mcp_cli.chat.testing import TestChatContext
257
258 sm = _make_stream_manager()
259 mm = _make_model_manager()
260 ctx = TestChatContext(sm, mm)
261
262 result = await ctx.execute_tool("my_tool", {"arg": "val"})
263 assert result == {"result": "ok"}
264 sm.call_tool.assert_awaited_once_with("my_tool", {"arg": "val"})
265
266 @pytest.mark.asyncio
267 async def test_raises_when_no_call_tool(self):

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