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

Method test_empty_py_file

tests/utils/test_config.py:280–287  ·  view source on GitHub ↗

Test loading empty Python file.

(self, temp_dir)

Source from the content-addressed store, hash-verified

278 """Edge case tests for Config."""
279
280 def test_empty_py_file(self, temp_dir):
281 """Test loading empty Python file."""
282 config_path = os.path.join(temp_dir, "empty.py")
283 with open(config_path, "w") as f:
284 f.write("")
285
286 config = Config(config_path)
287 assert config is not None
288
289 def test_py_with_none_values(self, temp_dir):
290 """Test Python file with None values."""

Callers

nothing calls this directly

Calls 1

ConfigClass · 0.90

Tested by

no test coverage detected