(self, mock_opts, mock_theme, mock_restore, runner)
| 986 | @patch("mcp_cli.main.set_theme") |
| 987 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
| 988 | def test_chat_model_only(self, mock_opts, mock_theme, mock_restore, runner): |
| 989 | from mcp_cli.main import app |
| 990 | |
| 991 | mm = _make_model_manager() |
| 992 | with patch("mcp_cli.model_management.ModelManager", return_value=mm): |
| 993 | with patch("asyncio.run") as mock_asyncio: |
| 994 | mock_asyncio.side_effect = lambda coro: coro.close() |
| 995 | runner.invoke( |
| 996 | app, |
| 997 | [ |
| 998 | "chat", |
| 999 | "--model", |
| 1000 | "gpt-4o", |
| 1001 | ], |
| 1002 | ) |
| 1003 | |
| 1004 | @patch("mcp_cli.main.restore_terminal") |
| 1005 | @patch("mcp_cli.main.set_theme") |
nothing calls this directly
no test coverage detected