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

Method manager

tests/model_management/test_model_manager.py:99–107  ·  view source on GitHub ↗

Create a ModelManager with mocked initialization.

(self)

Source from the content-addressed store, hash-verified

97
98 @pytest.fixture
99 def manager(self) -> ModelManager:
100 """Create a ModelManager with mocked initialization."""
101 with patch.object(ModelManager, "_initialize_chuk_llm"):
102 with patch.object(ModelManager, "_load_custom_providers"):
103 mgr = ModelManager()
104 mgr._chuk_config = None
105 mgr._active_provider = "ollama"
106 mgr._custom_providers = {}
107 return mgr
108
109 def test_get_available_providers_with_chuk_config(
110 self, manager: ModelManager

Callers

nothing calls this directly

Calls 1

ModelManagerClass · 0.90

Tested by

no test coverage detected