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

Method test_cmd_basic

tests/cli/test_main_coverage.py:782–788  ·  view source on GitHub ↗
(self, mock_theme, mock_opts, mock_run, runner)

Source from the content-addressed store, hash-verified

780 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
781 @patch("mcp_cli.main.set_theme")
782 def test_cmd_basic(self, mock_theme, mock_opts, mock_run, runner):
783 from mcp_cli.main import app
784
785 mm = _make_model_manager()
786 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
787 runner.invoke(app, ["cmd", "--prompt", "hello"])
788 assert mock_run.called
789
790 @patch("mcp_cli.main.run_command_sync")
791 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())

Callers

nothing calls this directly

Calls 1

_make_model_managerFunction · 0.70

Tested by

no test coverage detected