MCPcopy Create free account
hub / github.com/apache/arrow / test_small_random_json

Method test_small_random_json

python/pyarrow/tests/test_json.py:303–310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301
302 @pytest.mark.numpy
303 def test_small_random_json(self):
304 for extra_whitespace in (False, True):
305 data, _, expected = make_random_json(num_cols=2, num_rows=10,
306 extra_whitespace=extra_whitespace)
307 table = self.read_bytes(data)
308 assert table.schema == expected.schema
309 assert table.equals(expected)
310 assert table.to_pydict() == expected.to_pydict()
311
312 @pytest.mark.numpy
313 def test_load_large_json(self):

Callers

nothing calls this directly

Calls 3

read_bytesMethod · 0.95
make_random_jsonFunction · 0.85
equalsMethod · 0.80

Tested by

no test coverage detected