yield test for each variant, fix tuple formatting
@@ -105,6 +105,7 @@ else:
('2',),
('2',)))
]
+
def test_gsheet():
def test_tofromgsheet(table, worksheet, range_string, expected_result):
filename = 'test-{}'.format(str(uuid.uuid4()))
@@ -132,5 +133,6 @@ else:
client.del_spreadsheet(filekey)
- for argset in args:
- test_tofromgsheet(*argset)
+ # yield a test for each tuple of arguments in order to display with nose
+ for arg_tuple in args:
+ yield (test_tofromgsheet, *arg_tuple)
