ashb commented on code in PR #55906:
URL: https://github.com/apache/airflow/pull/55906#discussion_r2364512346
##########
airflow-core/tests/unit/serialization/test_dag_serialization.py:
##########
@@ -3802,6 +3802,27 @@ def
test_task_callback_backward_compatibility(old_callback_name, new_callback_na
assert getattr(deserialized_task_empty, new_callback_name) is False
+def test_weight_rule_absolute_serialization_deserialization():
+ """Test that weight_rule can be serialized and deserialized correctly."""
+ from airflow.sdk import task
+
+ with DAG("test_weight_rule_dag", start_date=datetime(2023, 1, 1)) as dag:
Review Comment:
Micro nit: start_date is optional
```suggestion
with DAG("test_weight_rule_dag") as dag:
```
--
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]