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

Method test_load_empty_yaml

tests/datasets/test_config.py:212–219  ·  view source on GitHub ↗

Test loading empty YAML file.

(self, temp_dir)

Source from the content-addressed store, hash-verified

210 ConfigLoader.load(filepath)
211
212 def test_load_empty_yaml(self, temp_dir):
213 """Test loading empty YAML file."""
214 filepath = os.path.join(temp_dir, "empty.yaml")
215 with open(filepath, "w") as f:
216 pass # Empty file
217
218 config = ConfigLoader.load(filepath)
219 assert config.datasets == []
220
221 def test_save_config(self, temp_dir):
222 """Test saving config to YAML file."""

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected