ephraimbuddy commented on a change in pull request #19367: URL: https://github.com/apache/airflow/pull/19367#discussion_r754517264
########## File path: tests/models/test_dag.py ########## @@ -822,6 +822,36 @@ def test_bulk_write_to_db_max_active_runs(self, state): model = session.query(DagModel).get((dag.dag_id,)) assert model.next_dagrun_create_after is None + def test_bulk_write_to_db_has_import_error(self): + """ + Test that DagModel.has_import_error is set to false if no import errors. + """ + dag = DAG(dag_id='test_has_import_error', start_date=DEFAULT_DATE) + + DummyOperator(task_id='dummy', dag=dag, owner='airflow') + + session = settings.Session() Review comment: Ah, yeah. That's better -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org