mik-laj 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_r382491548
##########
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:
It was set by DagBag. We don't use DagBag, so this value is not set.
https://github.com/apache/airflow/blob/master/airflow/models/dagbag.py#L374-L378
----------------------------------------------------------------
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