From 336824a12d400c8a9b685c14b550bca860165f5c Mon Sep 17 00:00:00 2001 From: jx2lee Date: Mon, 23 Dec 2024 20:38:40 +0900 Subject: [PATCH] test --- tests/timetables/test_continuous_timetable.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/timetables/test_continuous_timetable.py b/tests/timetables/test_continuous_timetable.py index 767dc251925ff..033b013056fe9 100644 --- a/tests/timetables/test_continuous_timetable.py +++ b/tests/timetables/test_continuous_timetable.py @@ -89,3 +89,15 @@ def test_no_runs_after_end_date(timetable, restriction): ) assert next_info is None + + +@time_machine.travel(DURING_DATE) +def test_no_false_triggering_with_future_start_date_after_run(timetable, restriction): + FUTURE_DATE = DURING_DATE.add(days=1) + + next_info = timetable.next_dagrun_info( + last_automated_data_interval=DataInterval(START_DATE, FUTURE_DATE), + restriction=restriction, + ) + + assert next_info is None