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

Method test_chat_with_theme

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

Source from the content-addressed store, hash-verified

1146 @patch("mcp_cli.main.set_theme")
1147 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
1148 def test_chat_with_theme(self, mock_opts, mock_theme, mock_restore, runner):
1149 from mcp_cli.main import app
1150
1151 mm = _make_model_manager()
1152 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
1153 with patch("asyncio.run") as mock_asyncio:
1154 mock_asyncio.side_effect = lambda coro: coro.close()
1155 runner.invoke(
1156 app,
1157 [
1158 "chat",
1159 "--theme",
1160 "dark",
1161 ],
1162 )
1163
1164 @patch("mcp_cli.main.restore_terminal")
1165 @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