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

Method manager

tests/model_management/test_model_manager.py:540–549  ·  view source on GitHub ↗

Create a ModelManager with mocked initialization.

(self)

Source from the content-addressed store, hash-verified

538
539 @pytest.fixture
540 def manager(self) -> ModelManager:
541 """Create a ModelManager with mocked initialization."""
542 with patch.object(ModelManager, "_initialize_chuk_llm"):
543 with patch.object(ModelManager, "_load_custom_providers"):
544 mgr = ModelManager()
545 mgr._chuk_config = None
546 mgr._active_provider = "ollama"
547 mgr._active_model = None
548 mgr._custom_providers = {}
549 return mgr
550
551 def test_get_active_provider(self, manager: ModelManager) -> None:
552 """Test getting active provider."""

Callers

nothing calls this directly

Calls 1

ModelManagerClass · 0.90

Tested by

no test coverage detected