(self, mock_opts, mock_theme, mock_restore, runner)
| 1146 | @patch("mcp_cli.main.set_theme") |
| 1147 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
| 1148 | def test_chat_with_theme(self, mock_opts, mock_theme, mock_restore, runner): |
| 1149 | from mcp_cli.main import app |
| 1150 | |
| 1151 | mm = _make_model_manager() |
| 1152 | with patch("mcp_cli.model_management.ModelManager", return_value=mm): |
| 1153 | with patch("asyncio.run") as mock_asyncio: |
| 1154 | mock_asyncio.side_effect = lambda coro: coro.close() |
| 1155 | runner.invoke( |
| 1156 | app, |
| 1157 | [ |
| 1158 | "chat", |
| 1159 | "--theme", |
| 1160 | "dark", |
| 1161 | ], |
| 1162 | ) |
| 1163 | |
| 1164 | @patch("mcp_cli.main.restore_terminal") |
| 1165 | @patch("mcp_cli.main.set_theme") |
nothing calls this directly
no test coverage detected