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

Method test_small_random_csv

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

Source from the content-addressed store, hash-verified

1445 }
1446
1447 def test_small_random_csv(self):
1448 csv, expected = make_random_csv(num_cols=2, num_rows=10)
1449 table = self.read_bytes(csv)
1450 assert table.schema == expected.schema
1451 assert table.equals(expected)
1452 assert table.to_pydict() == expected.to_pydict()
1453
1454 def test_stress_block_sizes(self):
1455 # 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