MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_dump_simple

Method test_dump_simple

tests/utils/test_config.py:136–145  ·  view source on GitHub ↗

Test dumping simple config.

(self, temp_dir)

Source from the content-addressed store, hash-verified

134 """Tests for Config.dump method."""
135
136 def test_dump_simple(self, temp_dir):
137 """Test dumping simple config."""
138 config_path = os.path.join(temp_dir, "config.py")
139 with open(config_path, "w") as f:
140 f.write("key = 'value'\n")
141
142 config = Config(config_path)
143 dumped = config.dump()
144 assert isinstance(dumped, dict)
145 assert dumped["key"] == "value"
146
147 def test_dump_nested(self, temp_dir):
148 """Test dumping nested config."""

Callers

nothing calls this directly

Calls 2

dumpMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected