Skip to content

Commit 7848089

Browse files
committed
Chore: Add a comment and an assert to test_broken_references to prevent future regressions
1 parent 975c69e commit 7848089

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/core/test_plan.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,10 @@ def test_broken_references(make_snapshot, mocker: MockerFixture):
686686
previous_finalized_snapshots=None,
687687
)
688688

689+
# Make sure the downstream snapshot doesn't have any parents,
690+
# since its only parent has been removed from the project.
691+
assert not snapshot_b.parents
692+
689693
with pytest.raises(
690694
PlanError,
691695
match=r"""Removed '"a"' are referenced in '"b"'.*""",

0 commit comments

Comments
 (0)