MCPcopy Create free account
hub / github.com/wireservice/csvkit / test_no_header_row

Method test_no_header_row

tests/test_utilities/test_sql2csv.py:122–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 self.assertEqual(csv.strip(), expected)
121
122 def test_no_header_row(self):
123 self.csvsql('examples/dummy.csv')
124 csv = self.get_output(['--db', 'sqlite:///' + self.db_file, '--no-header-row', '--query', 'select * from foo'])
125
126 self.assertTrue('a,b,c' not in csv)
127 self.assertTrue('1,2,3' in csv)
128
129 def test_linenumbers(self):
130 self.csvsql('examples/dummy.csv')

Callers

nothing calls this directly

Calls 2

csvsqlMethod · 0.95
get_outputMethod · 0.80

Tested by

no test coverage detected