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

Method test_random_csv

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

Source from the content-addressed store, hash-verified

1930 pytest.skip(str(e))
1931
1932 def test_random_csv(self):
1933 csv, expected = make_random_csv(num_cols=2, num_rows=100)
1934 csv_path = os.path.join(self.tmpdir, self.csv_filename)
1935 self.write_file(csv_path, csv)
1936 table = self.read_csv(csv_path)
1937 table.validate(full=True)
1938 assert table.schema == expected.schema
1939 assert table.equals(expected)
1940 assert table.to_pydict() == expected.to_pydict()
1941
1942
1943class TestGZipCSVRead(BaseTestCompressedCSVRead, unittest.TestCase):

Callers

nothing calls this directly

Calls 6

read_csvMethod · 0.95
make_random_csvFunction · 0.85
equalsMethod · 0.80
joinMethod · 0.45
write_fileMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected