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

Method test_default_with_theme

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

Source from the content-addressed store, hash-verified

1429 @patch("mcp_cli.main.set_theme")
1430 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
1431 def test_default_with_theme(self, mock_opts, mock_theme, mock_restore, runner):
1432 from mcp_cli.main import app
1433
1434 mm = _make_model_manager()
1435 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
1436 with patch("asyncio.run") as mock_asyncio:
1437 mock_asyncio.side_effect = lambda coro: coro.close()
1438 with patch("mcp_cli.config.load_runtime_config"):
1439 runner.invoke(app, ["--theme", "dark"])
1440
1441 @patch("mcp_cli.main.restore_terminal")
1442 @patch("mcp_cli.main.set_theme")

Callers

nothing calls this directly

Calls 2

_make_model_managerFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected