Skip to content

Commit 0f777c1

Browse files
committed
fix unittest of get_card_data function
1 parent b673acd commit 0f777c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_metabase_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ def test_get_card_data(self):
260260
]
261261
self.assertEqual(res, json_data)
262262

263-
# formatted rows (in json export mode, None become '' and numbers become strings, e.g. 123 -> '123')
263+
# formatted rows (in json export mode, Null values in varchar columns become '' and numbers become strings, e.g. 123 -> '123')
264264
res = mb.get_card_data(card_id=1, format_rows=True)
265265
json_data = [
266266
{'col1': 'row1 cell1', 'col2': '1'},
267267
{'col1': '', 'col2': '2'},
268-
{'col1': 'row3 cell1', 'col2': ''},
269-
{'col1': '', 'col2': ''},
268+
{'col1': 'row3 cell1', 'col2': None},
269+
{'col1': '', 'col2': None},
270270
{'col1': 'row5 cell1', 'col2': '5'}
271271
]
272272
self.assertEqual(res, json_data)

0 commit comments

Comments
 (0)