(self, mock_opts, mock_theme, mock_restore, runner)
| 1165 | @patch("mcp_cli.main.set_theme") |
| 1166 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
| 1167 | def test_chat_with_comma_models(self, mock_opts, mock_theme, mock_restore, runner): |
| 1168 | from mcp_cli.main import app |
| 1169 | |
| 1170 | mm = _make_model_manager() |
| 1171 | with patch("mcp_cli.model_management.ModelManager", return_value=mm): |
| 1172 | with patch("asyncio.run") as mock_asyncio: |
| 1173 | mock_asyncio.side_effect = lambda coro: coro.close() |
| 1174 | runner.invoke( |
| 1175 | app, |
| 1176 | [ |
| 1177 | "chat", |
| 1178 | "--provider", |
| 1179 | "custom", |
| 1180 | "--api-base", |
| 1181 | "http://localhost:8000", |
| 1182 | "--model", |
| 1183 | "model1,model2,model3", |
| 1184 | ], |
| 1185 | ) |
| 1186 | |
| 1187 | |
| 1188 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected