Test creating preferences from partial dictionary.
(self)
| 89 | assert prefs.ui.confirm_tools is False |
| 90 | |
| 91 | def test_from_dict_partial(self): |
| 92 | """Test creating preferences from partial dictionary.""" |
| 93 | data = {"ui": {"theme": "dracula"}} |
| 94 | prefs = MCPPreferences.from_dict(data) |
| 95 | assert prefs.ui.theme == "dracula" |
| 96 | assert prefs.provider.active_provider is None |
| 97 | assert prefs.provider.active_model is None |
| 98 | assert prefs.ui.confirm_tools is True |
| 99 | |
| 100 | |
| 101 | class TestPreferenceManager: |