mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
fix tests for google spreadsheets
This commit is contained in:
parent
61106dec14
commit
a0d039066d
@ -24,12 +24,12 @@ class TestGuessType(TestCase):
|
||||
class TestValueEvalList(TestCase):
|
||||
def test_handles_unicode(self):
|
||||
values = [u'יוניקוד', 'test', 'value']
|
||||
self.assertEqual(values, _value_eval_list(values))
|
||||
self.assertEqual(values, _value_eval_list(values, [TYPE_STRING]*len(values)))
|
||||
|
||||
def test_handles_boolean(self):
|
||||
values = ['true', 'false', 'True', 'False', 'TRUE', 'FALSE']
|
||||
converted_values = [True, False, True, False, True, False]
|
||||
self.assertEqual(converted_values, _value_eval_list(values))
|
||||
self.assertEqual(converted_values, _value_eval_list(values, [TYPE_BOOLEAN]*len(values)))
|
||||
|
||||
|
||||
class TestParseSpreadsheet(TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user