MCPcopy Index your code
hub / github.com/wireservice/csvkit / test_query_empty

Method test_query_empty

tests/test_utilities/test_csvsql.py:208–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 input_file.close()
207
208 def test_query_empty(self):
209 input_file = io.BytesIO()
210
211 with stdin_as_string(input_file):
212 output = self.get_output(['--query', 'SELECT 1'])
213 self.assertEqual(output, '1\n1\n')
214
215 input_file.close()
216
217 def test_query_text(self):
218 sql = self.get_output(['--query', 'SELECT text FROM testfixed_converted WHERE text LIKE "Chicago%"',

Callers

nothing calls this directly

Calls 3

stdin_as_stringFunction · 0.90
get_outputMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected