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

Method manager

tests/model_management/test_model_manager.py:426–434  ·  view source on GitHub ↗

Create a ModelManager with mocked initialization.

(self)

Source from the content-addressed store, hash-verified

424
425 @pytest.fixture
426 def manager(self) -> ModelManager:
427 """Create a ModelManager with mocked initialization."""
428 with patch.object(ModelManager, "_initialize_chuk_llm"):
429 with patch.object(ModelManager, "_load_custom_providers"):
430 mgr = ModelManager()
431 mgr._chuk_config = None
432 mgr._active_provider = "ollama"
433 mgr._custom_providers = {}
434 return mgr
435
436 @pytest.mark.asyncio
437 async def test_refresh_models_custom_provider(self, manager: ModelManager) -> None:

Callers

nothing calls this directly

Calls 1

ModelManagerClass · 0.90

Tested by

no test coverage detected