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

Method test_models_with_provider

tests/cli/test_main_coverage.py:755–761  ·  view source on GitHub ↗
(self, mock_theme, runner)

Source from the content-addressed store, hash-verified

753
754 @patch("mcp_cli.main.set_theme")
755 def test_models_with_provider(self, mock_theme, runner):
756 from mcp_cli.main import app
757
758 mm = _make_model_manager()
759 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
760 with patch("mcp_cli.main.output"):
761 runner.invoke(app, ["models", "openai"])
762
763 @patch("mcp_cli.main.set_theme")
764 def test_models_unknown_provider(self, mock_theme, runner):

Callers

nothing calls this directly

Calls 1

_make_model_managerFunction · 0.70

Tested by

no test coverage detected