Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Apr 9, 2024
1 parent 7909095 commit 660ce47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/libs/tests/utils/test_export_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ def test_zipped_sav_export_with_duplicate_column_name(self):
rows = list(reader)

# Check that columns are present
self.assertIn("Sport", _str_if_bytes(rows[0]))
self.assertIn("Sport", [_str_if_bytes(item) for item in rows[0]])
# Check for sport in first 5 characters
# because rows contains 'sport@d4b6'
self.assertIn("sport", list(map(_str_if_bytes, [x[0:5] for x in rows[0]])))
Expand Down

0 comments on commit 660ce47

Please sign in to comment.