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

Method manager

tests/model_management/test_model_manager.py:263–271  ·  view source on GitHub ↗

Create a ModelManager with mocked initialization.

(self)

Source from the content-addressed store, hash-verified

261
262 @pytest.fixture
263 def manager(self) -> ModelManager:
264 """Create a ModelManager with mocked initialization."""
265 with patch.object(ModelManager, "_initialize_chuk_llm"):
266 with patch.object(ModelManager, "_load_custom_providers"):
267 mgr = ModelManager()
268 mgr._chuk_config = None
269 mgr._active_provider = "ollama"
270 mgr._custom_providers = {}
271 return mgr
272
273 def test_get_available_models_no_provider(self, manager: ModelManager) -> None:
274 """Test getting models without specifying provider uses active."""

Callers

nothing calls this directly

Calls 1

ModelManagerClass · 0.90

Tested by

no test coverage detected