Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Aug 16, 2024
1 parent 3589f8f commit fba1cfa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1360,10 +1360,10 @@ def test_backfill_status_filtering(self, storage: RunStorage):
len(storage.get_backfills(filters=BulkActionsFilter(status=BulkActionStatus.COMPLETED)))
== 0
)
backfill = storage.get_backfills(
backfills = storage.get_backfills(
filters=BulkActionsFilter(status=BulkActionStatus.REQUESTED)
)
assert backfill == one
assert backfills[0] == one

storage.update_backfill(one.with_status(status=BulkActionStatus.COMPLETED))
assert (
Expand Down Expand Up @@ -1396,21 +1396,21 @@ def test_backfill_created_time_filtering(self, storage: RunStorage):

created_before = storage.get_backfills(
filters=BulkActionsFilter(
created_before=datetime_from_timestamp(all_backfills[3].backfill_timestamp)
created_before=datetime_from_timestamp(all_backfills[2].backfill_timestamp)
)
)
assert len(created_before) == 2
for backfill in created_before:
assert backfill.backfill_timestamp < all_backfills[3].backfill_timestamp
assert backfill.backfill_timestamp < all_backfills[2].backfill_timestamp

created_after = storage.get_backfills(
filters=BulkActionsFilter(
created_after=datetime_from_timestamp(all_backfills[3].backfill_timestamp)
created_after=datetime_from_timestamp(all_backfills[2].backfill_timestamp)
)
)
assert len(created_after) == 2
for backfill in created_after:
assert backfill.backfill_timestamp > all_backfills[3].backfill_timestamp
assert backfill.backfill_timestamp > all_backfills[2].backfill_timestamp

def test_secondary_index(self, storage):
self._skip_in_memory(storage)
Expand Down

0 comments on commit fba1cfa

Please sign in to comment.