Skip to content

Commit

Permalink
Call the io retrieve_alerts rather than its Schema method shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
spenczar committed Jul 7, 2020
1 parent 207f135 commit dc6f608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_retrieve_alerts(self):
records = self._mock_records(5)

with self._temp_alert_file(records) as alert_file:
have_schema, have_records_iterable = self.test_schema.retrieve_alerts(alert_file)
have_schema, have_records_iterable = retrieve_alerts(alert_file, self.test_schema)
have_records = list(have_records_iterable)

self.assertEqual(records, have_records)
Expand All @@ -82,7 +82,7 @@ def test_alert_file_with_one_alert(self):
records = self._mock_records(1)

with self._temp_alert_file(records) as alert_file:
have_schema, have_records_iterable = self.test_schema.retrieve_alerts(alert_file)
have_schema, have_records_iterable = retrieve_alerts(alert_file, self.test_schema)
have_records = list(have_records_iterable)

self.assertEqual(records, list(have_records))
Expand All @@ -93,7 +93,7 @@ def test_alert_file_with_no_alerts(self):
records = []

with self._temp_alert_file(records) as alert_file:
have_schema, have_records_iterable = self.test_schema.retrieve_alerts(alert_file)
have_schema, have_records_iterable = retrieve_alerts(alert_file, self.test_schema)
have_records = list(have_records_iterable)

self.assertEqual(records, list(have_records))
Expand Down

0 comments on commit dc6f608

Please sign in to comment.