mik-laj commented on a change in pull request #9330:
URL: https://github.com/apache/airflow/pull/9330#discussion_r444288253



##########
File path: tests/cli/commands/test_dag_command.py
##########
@@ -59,8 +60,14 @@ class TestCliDags(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         cls.dagbag = DagBag(include_examples=True)
+        DAG.bulk_sync_to_db([d[1] for d in cls.dagbag.dags.items()])

Review comment:
       ```suggestion
           DAG.bulk_sync_to_db([d for d in cls.dagbag.dags.values()])
   ```
   or
   ```suggestion
          cls.dagbag.sync_to_db()
   ```
   




----------------------------------------------------------------
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]


Reply via email to