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