Create a ModelManager with mocked initialization.
(self)
| 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: |
nothing calls this directly
no test coverage detected