You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/02 10:23:25 UTC

[GitHub] [airflow] ashb commented on a diff in pull request #23592: Automatically register DAGs that are used in a context manager

ashb commented on code in PR #23592:
URL: https://github.com/apache/airflow/pull/23592#discussion_r935383612


##########
tests/models/test_dagbag.py:
##########
@@ -937,8 +953,7 @@ def test_get_dag_with_dag_serialization(self):
     def test_collect_dags_from_db(self):
         """DAGs are collected from Database"""
         db.clear_db_dags()
-        example_dags_folder = airflow.example_dags.__path__[0]
-        dagbag = DagBag(example_dags_folder)
+        dagbag = DagBag(str(example_dags_folder))

Review Comment:
   Yeah, that was my thought -- it was orthogonal to this PR



-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org