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

Method test_dump_nested

tests/utils/test_config.py:147–156  ·  view source on GitHub ↗

Test dumping nested config.

(self, temp_dir)

Source from the content-addressed store, hash-verified

145 assert dumped["key"] == "value"
146
147 def test_dump_nested(self, temp_dir):
148 """Test dumping nested config."""
149 config_path = os.path.join(temp_dir, "config.py")
150 with open(config_path, "w") as f:
151 f.write("outer = dict(inner='value')\n")
152
153 config = Config(config_path)
154 dumped = config.dump()
155 assert isinstance(dumped, dict)
156 assert dumped["outer"]["inner"] == "value"
157
158 def test_dump_preserves_types(self, temp_dir):
159 """Test dump preserves data types."""

Callers

nothing calls this directly

Calls 2

dumpMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected