MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / test_to_csv

Method test_to_csv

functional/test/test_streams.py:357–364  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

355 self.assertEqual(dict_expect, result)
356
357 def test_to_csv(self):
358 tmp_path = "functional/test/data/tmp/output.txt"
359 elements = [[1, 2, 3], [4, 5, 6], ["a", "b", "c"]]
360 expect = [["1", "2", "3"], ["4", "5", "6"], ["a", "b", "c"]]
361 sequence = self.seq(elements)
362 sequence.to_csv(tmp_path)
363 result = self.seq.csv(tmp_path).to_list()
364 self.assertEqual(expect, result)
365
366 @unittest.skipUnless(system().startswith("Win"), "Skip CSV test if not on Windows")
367 def test_to_csv_win(self):

Callers

nothing calls this directly

Calls 3

to_csvMethod · 0.80
to_listMethod · 0.80
csvMethod · 0.80

Tested by

no test coverage detected