Create a ModelManager with mocked initialization.
(self)
| 261 | |
| 262 | @pytest.fixture |
| 263 | def manager(self) -> ModelManager: |
| 264 | """Create a ModelManager with mocked initialization.""" |
| 265 | with patch.object(ModelManager, "_initialize_chuk_llm"): |
| 266 | with patch.object(ModelManager, "_load_custom_providers"): |
| 267 | mgr = ModelManager() |
| 268 | mgr._chuk_config = None |
| 269 | mgr._active_provider = "ollama" |
| 270 | mgr._custom_providers = {} |
| 271 | return mgr |
| 272 | |
| 273 | def test_get_available_models_no_provider(self, manager: ModelManager) -> None: |
| 274 | """Test getting models without specifying provider uses active.""" |
nothing calls this directly
no test coverage detected