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

Method test_random_csv

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

Source from the content-addressed store, hash-verified

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