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

Method test_cmd_model_only

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

Source from the content-addressed store, hash-verified

828 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
829 @patch("mcp_cli.main.set_theme")
830 def test_cmd_model_only(self, mock_theme, mock_opts, mock_run, runner):
831 from mcp_cli.main import app
832
833 mm = _make_model_manager()
834 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
835 runner.invoke(app, ["cmd", "--model", "gpt-4o"])
836 assert mock_run.called
837
838 @patch("mcp_cli.main.run_command_sync")
839 @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