mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 06:56:13 +00:00
Documented csv import/export options from standard lib (#431)
This commit is contained in:
committed by
Hugo van Kemenade
parent
57a535f577
commit
ce7d887adc
@@ -800,6 +800,12 @@ class CSVTests(BaseTestCase):
|
||||
|
||||
self.assertEqual(csv, self.founders.csv)
|
||||
|
||||
def test_csv_export_options(self):
|
||||
"""Exporting support csv.writer() parameters."""
|
||||
data.append(('1. a', '2. b', '3. c'))
|
||||
result = data.export('csv', delimiter=' ', quotechar='|')
|
||||
self.assertEqual(result, '|1. a| |2. b| |3. c|\r\n')
|
||||
|
||||
def test_csv_stream_export(self):
|
||||
"""Verify exporting dataset object as CSV from file object."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user