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

Method manager

tests/model_management/test_model_manager.py:718–728  ·  view source on GitHub ↗

Create a ModelManager with mocked initialization.

(self)

Source from the content-addressed store, hash-verified

716
717 @pytest.fixture
718 def manager(self) -> ModelManager:
719 """Create a ModelManager with mocked initialization."""
720 with patch.object(ModelManager, "_initialize_chuk_llm"):
721 with patch.object(ModelManager, "_load_custom_providers"):
722 mgr = ModelManager()
723 mgr._chuk_config = None
724 mgr._active_provider = "ollama"
725 mgr._active_model = "llama2"
726 mgr._custom_providers = {}
727 mgr._client_factory = MagicMock()
728 return mgr
729
730 def test_str(self, manager: ModelManager) -> None:
731 """Test __str__ method."""

Callers

nothing calls this directly

Calls 1

ModelManagerClass · 0.90

Tested by

no test coverage detected