Skip to content

Commit

Permalink
Switch from list to iter in bulk lookup test
Browse files Browse the repository at this point in the history
  • Loading branch information
sagepe committed Apr 26, 2022
1 parent cdeb0ed commit f81922c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulk_lookup/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_excel_ods_files(self):
with open(os.path.dirname(__file__) + '/fixtures/test.' + typ, 'rb') as fp:
reader = csv.PyExcelReader(File(fp))
self.assertEqual(reader.fieldnames, ['ID', 'Name', 'Postcode'])
self.assertEqual(list(reader), data)
self.assertEqual(iter(reader), data)

def test_null_byte(self):
csv_file = StringIO('ID,Postcode\n1,SW1A1AA\n2,EH11BB\0')
Expand Down

0 comments on commit f81922c

Please sign in to comment.