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

Method test_linenumbers

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

Source from the content-addressed store, hash-verified

127 self.assertTrue('1,2,3' in csv)
128
129 def test_linenumbers(self):
130 self.csvsql('examples/dummy.csv')
131 csv = self.get_output(['--db', 'sqlite:///' + self.db_file, '--linenumbers', '--query', 'select * from foo'])
132
133 self.assertTrue('line_number,a,b,c' in csv)
134 self.assertTrue('1,1,2,3' in csv)
135
136 def test_wildcard_on_sqlite(self):
137 self.csvsql('examples/iris.csv')

Callers

nothing calls this directly

Calls 2

csvsqlMethod · 0.95
get_outputMethod · 0.80

Tested by

no test coverage detected