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