MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_default_timeout_error

Method test_default_timeout_error

tests/cli/test_main_coverage.py:1486–1496  ·  view source on GitHub ↗
(self, mock_opts, mock_theme, mock_restore, runner)

Source from the content-addressed store, hash-verified

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# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

_close_and_raiseFunction · 0.85
_make_model_managerFunction · 0.70

Tested by

no test coverage detected