(self, mock_opts, mock_theme, mock_restore, runner)
| 967 | @patch("mcp_cli.main.set_theme") |
| 968 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
| 969 | def test_chat_provider_only(self, mock_opts, mock_theme, mock_restore, runner): |
| 970 | from mcp_cli.main import app |
| 971 | |
| 972 | mm = _make_model_manager() |
| 973 | with patch("mcp_cli.model_management.ModelManager", return_value=mm): |
| 974 | with patch("asyncio.run") as mock_asyncio: |
| 975 | mock_asyncio.side_effect = lambda coro: coro.close() |
| 976 | runner.invoke( |
| 977 | app, |
| 978 | [ |
| 979 | "chat", |
| 980 | "--provider", |
| 981 | "openai", |
| 982 | ], |
| 983 | ) |
| 984 | |
| 985 | @patch("mcp_cli.main.restore_terminal") |
| 986 | @patch("mcp_cli.main.set_theme") |
nothing calls this directly
no test coverage detected