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

Method test_theme_set

tests/cli/test_main_coverage.py:868–874  ·  view source on GitHub ↗
(self, mock_theme, runner)

Source from the content-addressed store, hash-verified

866
867 @patch("mcp_cli.main.set_theme")
868 def test_theme_set(self, mock_theme, runner):
869 from mcp_cli.main import app
870
871 with patch("mcp_cli.adapters.cli.cli_execute", new_callable=AsyncMock):
872 with patch("asyncio.run") as mock_asyncio_run:
873 mock_asyncio_run.side_effect = lambda coro: coro.close()
874 runner.invoke(app, ["theme", "dark"])
875
876
877# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected