Skip to content

Commit dccd1c9

Browse files
committed
save_as will always use pyexcel.Sheet, which will always make the content uniform. isave_as does not. this is the change from pyexcel v0.3.0
1 parent 0f3c438 commit dccd1c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
'no_title_single_sheet':
271271
'[[1, 2, 3], [4, 588, 6], [7, 8, 999]]',
272272
'new_normal_usage_irregular_columns':
273-
'{"pyexcel_sheet1": [[1, 2, 3], [4, 588, 6], [7, 8]]}',
273+
'{"pyexcel_sheet1": [[1, 2, 3], [4, 588, 6], [7, 8, ""]]}',
274274
'column_series':
275275
'{"pyexcel_sheet1": [{"Column 1": 1, "Column 2": 2, "Column 3": 3},'
276276
' {"Column 1": 4, "Column 2": 5, "Column 3": 6},'
@@ -280,7 +280,7 @@
280280
' {"Column 1": 4, "Column 2": 5, "Column 3": 6},'
281281
' {"Column 1": 7, "Column 2": 8, "Column 3": ""}]}',
282282
'csvbook_irregular_columns':
283-
'{"testfile.csv": [[1, 2, 3], [4, 588, 6], [7, 8]]}',
283+
'{"testfile.csv": [[1, 2, 3], [4, 588, 6], [7, 8, ""]]}',
284284
'data_frame':
285285
'{"pyexcel_sheet1": {"Row 1": {"Column 1": 1, "Column 2": 2, "Column 3": 3}, "Row 2": {"Column 1": 4, "Column 2": 5, "Column 3": 6}, "Row 3": {"Column 1": 7, "Column 2": 8, "Column 3": 9}}}',
286286
'row_series':

tests/test_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_new_normal_usage_irregular_columns(self):
8484
content = [
8585
[1, 2, 3],
8686
[4, 588, 6],
87-
[7, 8, '']
87+
[7, 8]
8888
]
8989
pe.save_as(array=content, dest_file_name=self.testfile)
9090

@@ -94,7 +94,7 @@ def test_csvbook_irregular_columns(self):
9494
content = [
9595
[1, 2, 3],
9696
[4, 588, 6],
97-
[7, 8, '']
97+
[7, 8]
9898
]
9999
self.testfile2 = "testfile.csv"
100100
pe.save_as(array=content, dest_file_name=self.testfile2)

0 commit comments

Comments
 (0)