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

Method test_save_empty_list

tests/datasets/test_formatters.py:264–271  ·  view source on GitHub ↗

Test saving empty list.

(self, jsonl_format, temp_dir)

Source from the content-addressed store, hash-verified

262 assert "unicode test value" in content
263
264 def test_save_empty_list(self, jsonl_format, temp_dir):
265 """Test saving empty list."""
266 filepath = os.path.join(temp_dir, "empty.jsonl")
267 jsonl_format.save([], filepath)
268
269 with open(filepath, "r") as f:
270 content = f.read()
271 assert content == "" or content == "\n"
272
273
274class TestFormatRegistry:

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected