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

Method test_random_csv

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

Source from the content-addressed store, hash-verified

2000 pytest.skip(str(e))
2001
2002 def test_random_csv(self):
2003 csv, expected = make_random_csv(num_cols=2, num_rows=100)
2004 csv_path = os.path.join(self.tmpdir, self.csv_filename)
2005 self.write_file(csv_path, csv)
2006 table = self.read_csv(csv_path)
2007 table.validate(full=True)
2008 assert table.schema == expected.schema
2009 assert table.equals(expected)
2010 assert table.to_pydict() == expected.to_pydict()
2011
2012
2013class 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