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

Method test_small_random_json

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

Source from the content-addressed store, hash-verified

295
296 @pytest.mark.numpy
297 def test_small_random_json(self):
298 data, expected = make_random_json(num_cols=2, num_rows=10)
299 table = self.read_bytes(data)
300 assert table.schema == expected.schema
301 assert table.equals(expected)
302 assert table.to_pydict() == expected.to_pydict()
303
304 @pytest.mark.numpy
305 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