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

Method manager

tests/model_management/test_model_manager.py:669–677  ·  view source on GitHub ↗

Create a ModelManager with mocked initialization.

(self)

Source from the content-addressed store, hash-verified

667
668 @pytest.fixture
669 def manager(self) -> ModelManager:
670 """Create a ModelManager with mocked initialization."""
671 with patch.object(ModelManager, "_initialize_chuk_llm"):
672 with patch.object(ModelManager, "_load_custom_providers"):
673 mgr = ModelManager()
674 mgr._chuk_config = None
675 mgr._active_provider = "ollama"
676 mgr._custom_providers = {}
677 return mgr
678
679 def test_validate_provider_valid(self, manager: ModelManager) -> None:
680 """Test validate_provider for valid provider."""

Callers

nothing calls this directly

Calls 1

ModelManagerClass · 0.90

Tested by

no test coverage detected