omkar-foss commented on code in PR #44220:
URL: https://github.com/apache/airflow/pull/44220#discussion_r1851894824


##########
tests/api_fastapi/conftest.py:
##########
@@ -36,3 +36,12 @@ def create_test_client(apps="all"):
         return TestClient(app)
 
     return create_test_client
+
+
[email protected](scope="module")
+def dagbag():
+    from airflow.models import DagBag
+
+    dagbag_instance = DagBag(include_examples=True, read_dags_from_db=False)
+    dagbag_instance.sync_to_db()
+    return dagbag_instance

Review Comment:
   Yes this works, but if you don't mind, shall I pick this up in a separate 
PR? Have some other cleanup to do in tests so can do it together if that's okay.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to