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

Method test_small_random_csv

python/pyarrow/tests/test_csv.py:1818–1824  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1816 'b': ["éléphant"]}])
1817
1818 def test_small_random_csv(self):
1819 csv, expected = make_random_csv(num_cols=2, num_rows=10)
1820 reader = self.open_bytes(csv)
1821 table = reader.read_all()
1822 assert table.schema == expected.schema
1823 assert table.equals(expected)
1824 assert table.to_pydict() == expected.to_pydict()
1825
1826 def test_stress_block_sizes(self):
1827 # Test a number of small block sizes to stress block stitching

Callers

nothing calls this directly

Calls 3

open_bytesMethod · 0.95
make_random_csvFunction · 0.85
equalsMethod · 0.80

Tested by

no test coverage detected