Lee-W commented on code in PR #68342:
URL: https://github.com/apache/airflow/pull/68342#discussion_r3401485569
##########
airflow-core/tests/unit/timetables/test_trigger_timetable.py:
##########
@@ -834,3 +834,20 @@ def test_generate_run_id_without_partition_key() -> None:
data_interval=None,
)
assert run_id.startswith("manual__2025-06-07T08:09:00+00:00__")
+
+
+def test_dagruninfo_backward_compatibility() -> None:
+ start = pendulum.datetime(2025, 1, 1, tz="UTC")
+ end = pendulum.datetime(2025, 1, 2, tz="UTC")
+
+ info = DagRunInfo(
+ run_after=end,
+ data_interval=DataInterval(
+ start=start,
+ end=end,
+ ),
+ )
+
+ assert info.partition_date is None
+ assert info.partition_key is None
+
Review Comment:
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]