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