Create a ModelManager with mocked initialization.
(self)
| 97 | |
| 98 | @pytest.fixture |
| 99 | def manager(self) -> ModelManager: |
| 100 | """Create a ModelManager with mocked initialization.""" |
| 101 | with patch.object(ModelManager, "_initialize_chuk_llm"): |
| 102 | with patch.object(ModelManager, "_load_custom_providers"): |
| 103 | mgr = ModelManager() |
| 104 | mgr._chuk_config = None |
| 105 | mgr._active_provider = "ollama" |
| 106 | mgr._custom_providers = {} |
| 107 | return mgr |
| 108 | |
| 109 | def test_get_available_providers_with_chuk_config( |
| 110 | self, manager: ModelManager |
nothing calls this directly
no test coverage detected