ashb commented on a change in pull request #4862: [AIRFLOW-4035] Remove DagBag
from /graph
URL: https://github.com/apache/airflow/pull/4862#discussion_r268429357
##########
File path: tests/www/test_views.py
##########
@@ -755,6 +755,7 @@ def setUp(self):
from airflow.www.views import dagbag
from airflow.utils.state import State
dag = DAG(self.DAG_ID, start_date=self.DEFAULT_DATE)
+ dag.sync_to_db()
Review comment:
I've done some work on making each test be stand-alone. And without it when
running individual tests many tests would fail if the Scheduler tests haven't
run, so this sort of thing makes each test less dependent on the other tests,
or the order the test are run in.
----------------------------------------------------------------
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