(self, mock_theme, runner)
| 857 | class 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): |