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

Function _make_model_manager

tests/cli/test_main_coverage.py:63–73  ·  view source on GitHub ↗

Create a mock ModelManager with standard methods.

()

Source from the content-addressed store, hash-verified

61
62
63def _make_model_manager():
64 """Create a mock ModelManager with standard methods."""
65 mm = MagicMock()
66 mm.get_active_provider.return_value = "openai"
67 mm.get_active_model.return_value = "gpt-4o-mini"
68 mm.get_default_model.return_value = "gpt-4o-mini"
69 mm.validate_provider.return_value = True
70 mm.get_available_providers.return_value = ["openai", "anthropic"]
71 mm.get_available_models.return_value = ["gpt-4o-mini", "gpt-4o"]
72 mm.add_runtime_provider = MagicMock()
73 return mm
74
75
76def _make_pref_manager():

Calls

no outgoing calls

Tested by

no test coverage detected