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

Method test_small_random_csv

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

Source from the content-addressed store, hash-verified

1516 }
1517
1518 def test_small_random_csv(self):
1519 csv, expected = make_random_csv(num_cols=2, num_rows=10)
1520 table = self.read_bytes(csv)
1521 assert table.schema == expected.schema
1522 assert table.equals(expected)
1523 assert table.to_pydict() == expected.to_pydict()
1524
1525 def test_stress_block_sizes(self):
1526 # 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