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

Method test_small_random_csv

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

Source from the content-addressed store, hash-verified

1515 }
1516
1517 def test_small_random_csv(self):
1518 csv, expected = make_random_csv(num_cols=2, num_rows=10)
1519 table = self.read_bytes(csv)
1520 assert table.schema == expected.schema
1521 assert table.equals(expected)
1522 assert table.to_pydict() == expected.to_pydict()
1523
1524 def test_stress_block_sizes(self):
1525 # Test a number of small block sizes to stress block stitching

Callers

nothing calls this directly

Calls 3

read_bytesMethod · 0.95
make_random_csvFunction · 0.85
equalsMethod · 0.80

Tested by

no test coverage detected