Create a ModelManager with mocked initialization.
(self)
| 716 | |
| 717 | @pytest.fixture |
| 718 | def manager(self) -> ModelManager: |
| 719 | """Create a ModelManager with mocked initialization.""" |
| 720 | with patch.object(ModelManager, "_initialize_chuk_llm"): |
| 721 | with patch.object(ModelManager, "_load_custom_providers"): |
| 722 | mgr = ModelManager() |
| 723 | mgr._chuk_config = None |
| 724 | mgr._active_provider = "ollama" |
| 725 | mgr._active_model = "llama2" |
| 726 | mgr._custom_providers = {} |
| 727 | mgr._client_factory = MagicMock() |
| 728 | return mgr |
| 729 | |
| 730 | def test_str(self, manager: ModelManager) -> None: |
| 731 | """Test __str__ method.""" |
nothing calls this directly
no test coverage detected