From 97110ec4ce207401304c01fdcf42469d9e5715de Mon Sep 17 00:00:00 2001 From: JamieDeMaria Date: Fri, 16 Aug 2024 10:50:30 -0400 Subject: [PATCH] fix tests --- .../dagster_tests/storage_tests/utils/run_storage.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python_modules/dagster/dagster_tests/storage_tests/utils/run_storage.py b/python_modules/dagster/dagster_tests/storage_tests/utils/run_storage.py index e485ad4d93fa6..75f95ec862ca8 100644 --- a/python_modules/dagster/dagster_tests/storage_tests/utils/run_storage.py +++ b/python_modules/dagster/dagster_tests/storage_tests/utils/run_storage.py @@ -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 ( @@ -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)