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

Method test_to_csv_win

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

Source from the content-addressed store, hash-verified

365
366 @unittest.skipUnless(system().startswith("Win"), "Skip CSV test if not on Windows")
367 def test_to_csv_win(self):
368 tmp_path = "functional/test/data/tmp/output.txt"
369 elements = [[1, 2, 3], [4, 5, 6], ["a", "b", "c"]]
370 expect = [["1", "2", "3"], [], ["4", "5", "6"], [], ["a", "b", "c"], []]
371 sequence = self.seq(elements)
372 sequence.to_csv(tmp_path)
373 result = self.seq.csv(tmp_path).to_list()
374 self.assertNotEqual(expect, result)
375
376 def test_to_csv_compressed(self):
377 tmp_path = "functional/test/data/tmp/output.txt"

Callers

nothing calls this directly

Calls 3

to_csvMethod · 0.80
to_listMethod · 0.80
csvMethod · 0.80

Tested by

no test coverage detected