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/01 06:20:39 UTC

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

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


##########
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:
   Maybe we should just allow `DagBag` to take `Path`, but this doesn’t need to be done now.



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