Test loading a valid JSON file.
(self, json_format, temp_json_file)
| 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.""" |