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

Method test_theme_list

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

Source from the content-addressed store, hash-verified

857class TestThemeCommand:
858 @patch("mcp_cli.main.set_theme")
859 def test_theme_list(self, mock_theme, runner):
860 from mcp_cli.main import app
861
862 with patch("mcp_cli.adapters.cli.cli_execute", new_callable=AsyncMock):
863 with patch("asyncio.run") as mock_asyncio_run:
864 mock_asyncio_run.side_effect = lambda coro: coro.close()
865 runner.invoke(app, ["theme", "--list"])
866
867 @patch("mcp_cli.main.set_theme")
868 def test_theme_set(self, mock_theme, runner):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected