ashb commented on a change in pull request #7477: [AIRFLOW-6857][depends on
AIRFLOW-6856] Bulk sync DAGs
URL: https://github.com/apache/airflow/pull/7477#discussion_r382493329
##########
File path: tests/models/test_dag.py
##########
@@ -739,13 +739,13 @@ def test_sync_to_db(self, mock_now):
)
with dag:
DummyOperator(task_id='task', owner='owner1')
+ subdag = DAG('dag.subtask', start_date=DEFAULT_DATE, )
+ subdag.parent_dag = dag
+ subdag.is_subdag = True
Review comment:
Gotcha. Maybe worth a comment here just to explain why we need to set it in
this case.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services