Skip to content

Commit 3f95dc0

Browse files
committed
fix tests
1 parent d509079 commit 3f95dc0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/core/test_plan_stages.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ def test_build_plan_stages_restatement_prod_only(
520520
snapshot_a.snapshot_id: snapshot_a,
521521
snapshot_b.snapshot_id: snapshot_b,
522522
}
523+
state_reader.get_snapshots_by_names.return_value = {
524+
snapshot_a.id_and_version,
525+
snapshot_b.id_and_version,
526+
}
523527

524528
existing_environment = Environment(
525529
name="prod",
@@ -661,7 +665,7 @@ def _get_snapshots(snapshot_ids: t.Iterable[SnapshotIdLike]):
661665
}
662666

663667
state_reader.get_snapshots.side_effect = _get_snapshots
664-
state_reader.get_snapshot_ids_by_names.return_value = set()
668+
state_reader.get_snapshots_by_names.return_value = set()
665669

666670
existing_prod_environment = Environment(
667671
name="prod",

0 commit comments

Comments
 (0)