(self, MockMM)
| 122 | |
| 123 | @patch("mcp_cli.chat.testing.ModelManager") |
| 124 | def test_no_provider_no_model(self, MockMM): |
| 125 | from mcp_cli.chat.testing import TestChatContext |
| 126 | |
| 127 | mm_inst = _make_model_manager() |
| 128 | MockMM.return_value = mm_inst |
| 129 | sm = _make_stream_manager() |
| 130 | |
| 131 | ctx = TestChatContext.create_for_testing(sm) |
| 132 | assert ctx.stream_manager is sm |
| 133 | mm_inst.switch_model.assert_not_called() |
| 134 | mm_inst.switch_provider.assert_not_called() |
| 135 | |
| 136 | @patch("mcp_cli.chat.testing.ModelManager") |
| 137 | def test_provider_and_model(self, MockMM): |
nothing calls this directly
no test coverage detected