Skip to content

Commit cdf0b53

Browse files
verify test plan start and end dates
1 parent 9d844e5 commit cdf0b53

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/core/test_context.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,11 +1207,17 @@ def test_plan_seed_model_excluded_from_default_end(copy_to_temp_path: t.Callable
12071207
assert max_ends[seed_fqns[0]] == to_timestamp("2024-06-01")
12081208

12091209
# the plan start date 2025-01-01 is after the seeds end date but shouldnt cause the plan to fail
1210-
context.plan(
1210+
plan = context.plan(
12111211
"dev",
12121212
start="2025-01-01",
12131213
no_prompts=True,
12141214
)
1215+
1216+
# the end should fall back to execution_time rather than seeds end
1217+
assert plan.provided_end is None
1218+
assert plan.provided_start == "2025-01-01"
1219+
assert to_timestamp(plan.end) == to_timestamp("2026-03-01")
1220+
assert to_timestamp(plan.start) == to_timestamp("2025-01-01")
12151221
context.close()
12161222

12171223

0 commit comments

Comments
 (0)