Skip to content

Commit 913a02a

Browse files
run test with selector; verify test plan start and end dates
1 parent 9d844e5 commit 913a02a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/core/test_context.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,11 +1207,18 @@ 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,
1214+
select_models=["*waiter_summary"]
12141215
)
1216+
1217+
# the end should fall back to execution_time rather than seeds end
1218+
assert plan.provided_end is None
1219+
assert plan.provided_start == "2025-01-01"
1220+
assert to_timestamp(plan.end) == to_timestamp("2026-03-01")
1221+
assert to_timestamp(plan.start) == to_timestamp("2025-01-01")
12151222
context.close()
12161223

12171224

0 commit comments

Comments
 (0)