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

Method test_chat_basic

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

Source from the content-addressed store, hash-verified

930 @patch("mcp_cli.main.set_theme")
931 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
932 def test_chat_basic(self, mock_opts, mock_theme, mock_restore, runner):
933 from mcp_cli.main import app
934
935 mm = _make_model_manager()
936 _make_pref_manager()
937
938 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
939 with patch("asyncio.run") as mock_asyncio:
940 mock_asyncio.side_effect = lambda coro: coro.close()
941 runner.invoke(app, ["chat"])
942
943 @patch("mcp_cli.main.restore_terminal")
944 @patch("mcp_cli.main.set_theme")

Callers

nothing calls this directly

Calls 3

_make_model_managerFunction · 0.70
_make_pref_managerFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected