Skip to content

Commit c0758f5

Browse files
committed
fix test
1 parent 1dff2ea commit c0758f5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

sqlmesh/core/plan/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class EvaluatablePlan(PydanticModel):
303303
forward_only: bool
304304
end_bounded: bool
305305
ensure_finalized_snapshots: bool
306-
ignore_cron: bool
306+
ignore_cron: bool = False
307307
directly_modified_snapshots: t.List[SnapshotId]
308308
indirectly_modified_snapshots: t.Dict[str, t.List[SnapshotId]]
309309
metadata_updated_snapshots: t.List[SnapshotId]

tests/core/test_plan.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,9 +3362,6 @@ def test_environment_statements_change_allows_dev_environment_creation(make_snap
33623362

33633363

33643364
def test_plan_ignore_cron_flag(make_snapshot):
3365-
"""Test that ignore_cron flag is properly stored and propagated through plan objects."""
3366-
3367-
# Create a snapshot with a daily cron schedule
33683365
snapshot_a = make_snapshot(
33693366
SqlModel(
33703367
name="test_model",
@@ -3375,8 +3372,8 @@ def test_plan_ignore_cron_flag(make_snapshot):
33753372
allow_partials=True,
33763373
)
33773374
)
3375+
snapshot_a.categorize_as(SnapshotChangeCategory.BREAKING, forward_only=False)
33783376

3379-
# Mock the context diff
33803377
context_diff = ContextDiff(
33813378
environment="dev",
33823379
is_new_environment=True,

0 commit comments

Comments
 (0)