Create a ModelManager with mocked initialization.
(self)
| 538 | |
| 539 | @pytest.fixture |
| 540 | def manager(self) -> ModelManager: |
| 541 | """Create a ModelManager with mocked initialization.""" |
| 542 | with patch.object(ModelManager, "_initialize_chuk_llm"): |
| 543 | with patch.object(ModelManager, "_load_custom_providers"): |
| 544 | mgr = ModelManager() |
| 545 | mgr._chuk_config = None |
| 546 | mgr._active_provider = "ollama" |
| 547 | mgr._active_model = None |
| 548 | mgr._custom_providers = {} |
| 549 | return mgr |
| 550 | |
| 551 | def test_get_active_provider(self, manager: ModelManager) -> None: |
| 552 | """Test getting active provider.""" |
nothing calls this directly
no test coverage detected