(self, MockMM)
| 135 | |
| 136 | @patch("mcp_cli.chat.testing.ModelManager") |
| 137 | def test_provider_and_model(self, MockMM): |
| 138 | from mcp_cli.chat.testing import TestChatContext |
| 139 | |
| 140 | mm_inst = _make_model_manager() |
| 141 | MockMM.return_value = mm_inst |
| 142 | sm = _make_stream_manager() |
| 143 | |
| 144 | TestChatContext.create_for_testing(sm, provider="anthropic", model="claude-3") |
| 145 | mm_inst.switch_model.assert_called_once_with("anthropic", "claude-3") |
| 146 | |
| 147 | @patch("mcp_cli.chat.testing.ModelManager") |
| 148 | def test_provider_only(self, MockMM): |
nothing calls this directly
no test coverage detected