We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20237d5 commit 6bcb5eeCopy full SHA for 6bcb5ee
tests/core/test_state_sync.py
@@ -349,10 +349,11 @@ def test_remove_interval_missing_snapshot(
349
),
350
version="a",
351
)
352
- # Only add snapshot_a to simulate that snapshot_b is missing
353
- state_sync.push_snapshots([snapshot_a])
+ state_sync.push_snapshots([snapshot_a, snapshot_b])
354
state_sync.add_interval(snapshot_a, "2020-01-01", "2020-01-10")
355
state_sync.add_interval(snapshot_b, "2020-01-11", "2020-01-30")
+ # Remove snapshot b in order to test the scenario where it is missing
356
+ state_sync.delete_snapshots([snapshot_b.snapshot_id])
357
358
snapshots = state_sync.get_snapshots([snapshot_a, snapshot_b])
359
assert len(snapshots) == 1
0 commit comments