MCPcopy
hub / github.com/crewAIInc/crewAI / test_none_values

Method test_none_values

lib/cli/tests/test_config.py:126–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

124 self.assertEqual(saved_data["tool_repository_username"], "user1")
125
126 def test_none_values(self):
127 settings = Settings(config_path=self.config_path, tool_repository_username=None)
128 settings.dump()
129
130 with self.config_path.open("r") as f:
131 saved_data = json.load(f)
132
133 self.assertIsNone(saved_data.get("tool_repository_username"))
134
135 def test_invalid_json_in_config(self):
136 self.config_path.parent.mkdir(parents=True, exist_ok=True)

Callers

nothing calls this directly

Calls 5

dumpMethod · 0.95
SettingsClass · 0.85
openMethod · 0.80
loadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected