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

Method test_load_valid_json

tests/datasets/test_formatters.py:88–93  ·  view source on GitHub ↗

Test loading a valid JSON file.

(self, json_format, temp_json_file)

Source from the content-addressed store, hash-verified

86 assert ".json" in json_format.extensions()
87
88 def test_load_valid_json(self, json_format, temp_json_file):
89 """Test loading a valid JSON file."""
90 data = json_format.load(temp_json_file)
91 assert isinstance(data, list)
92 assert len(data) == 3
93 assert "conversations" in data[0]
94
95 def test_load_empty_json_array(self, json_format, temp_dir):
96 """Test loading an empty JSON array."""

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected