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

Method test_cmd_provider_only

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

Source from the content-addressed store, hash-verified

817 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
818 @patch("mcp_cli.main.set_theme")
819 def test_cmd_provider_only(self, mock_theme, mock_opts, mock_run, runner):
820 from mcp_cli.main import app
821
822 mm = _make_model_manager()
823 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
824 runner.invoke(app, ["cmd", "--provider", "openai"])
825 assert mock_run.called
826
827 @patch("mcp_cli.main.run_command_sync")
828 @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