MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_from_dict_partial

Method test_from_dict_partial

tests/utils/test_preferences.py:91–98  ·  view source on GitHub ↗

Test creating preferences from partial dictionary.

(self)

Source from the content-addressed store, hash-verified

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
101class TestPreferenceManager:

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected