(self, MockMM)
| 158 | |
| 159 | @patch("mcp_cli.chat.testing.ModelManager") |
| 160 | def test_model_only(self, MockMM): |
| 161 | from mcp_cli.chat.testing import TestChatContext |
| 162 | |
| 163 | mm_inst = _make_model_manager() |
| 164 | mm_inst.get_active_provider.return_value = "openai" |
| 165 | MockMM.return_value = mm_inst |
| 166 | sm = _make_stream_manager() |
| 167 | |
| 168 | TestChatContext.create_for_testing(sm, model="gpt-3.5") |
| 169 | mm_inst.switch_model.assert_called_once_with("openai", "gpt-3.5") |
| 170 | |
| 171 | |
| 172 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected