You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "rawwar (via GitHub)" <gi...@apache.org> on 2024/11/23 18:06:19 UTC

[PR] use __file__ for dag fileloc in test_dag [airflow]

rawwar opened a new pull request, #44312:
URL: https://github.com/apache/airflow/pull/44312

   When running test_dags.py locally using venv, it fails because, DAG's fileloc is hardcoded. airflow tests folder is assumed to be in `/opt/airflow`. This is not true when running tests on local using venv. Since, DAG's are created within the test file, we can just use `__file__` to get the source path


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


Re: [PR] use __file__ for dag fileloc in test_dag [airflow]

Posted by "kaxil (via GitHub)" <gi...@apache.org>.
kaxil commented on PR #44312:
URL: https://github.com/apache/airflow/pull/44312#issuecomment-2495753873

   fyi: I have started adding `changelogLskip` label for PRs that don't need to be in changelog like this one from few weeks


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


Re: [PR] use __file__ for dag fileloc in test_dag [airflow]

Posted by "jscheffl (via GitHub)" <gi...@apache.org>.
jscheffl merged PR #44312:
URL: https://github.com/apache/airflow/pull/44312


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