(self, mock_opts, mock_theme, mock_restore, runner)
| 1484 | @patch("mcp_cli.main.set_theme") |
| 1485 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
| 1486 | def test_default_timeout_error(self, mock_opts, mock_theme, mock_restore, runner): |
| 1487 | from mcp_cli.main import app |
| 1488 | |
| 1489 | mm = _make_model_manager() |
| 1490 | with patch("mcp_cli.model_management.ModelManager", return_value=mm): |
| 1491 | with patch( |
| 1492 | "asyncio.run", |
| 1493 | side_effect=_close_and_raise(asyncio.TimeoutError()), |
| 1494 | ): |
| 1495 | with patch("mcp_cli.config.load_runtime_config"): |
| 1496 | runner.invoke(app, []) |
| 1497 | |
| 1498 | |
| 1499 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected