dirrao commented on code in PR #39989:
URL: https://github.com/apache/airflow/pull/39989#discussion_r1624735251
##########
tests/models/test_dagbag.py:
##########
@@ -765,9 +765,13 @@ def subdag_1():
return dag
- test_dag = nested_subdag_cycle()
- # coherence check to make sure DAG.subdag is still functioning properly
- assert len(test_dag.subdags) == 6
+ with pytest.warns(
+ RemovedInAirflow3Warning,
+ match="This class is deprecated. Please use
`airflow.utils.task_group.TaskGroup`.",
+ ):
+ test_dag = nested_subdag_cycle()
+ # coherence check to make sure DAG.subdag is still functioning
properly
+ assert len(test_dag.subdags) == 6
Review Comment:
Thanks. Made the change.
--
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]