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/09/20 19:25:49 UTC
[GitHub] [airflow] dstandish opened a new pull request, #26536: Add fixture for CLI tests requiring sample dags
dstandish opened a new pull request, #26536:
URL: https://github.com/apache/airflow/pull/26536
Add fixture for CLI tests requiring sample dags
I noticed that various CLI tests were failing (specifically in test_task_command.py) when run locally but not when run in breeze. I figured out the cause is that breeze has ('core', 'load_examples') set to true but I had it false locally. To fix this we can add a fixture that patches the conf settings. But we have to go one step further. If we grab the conf value in the default for the argument in DagBag, this means the value is fixed at the time the class gets defined. So the value cannot be changed later in runtime! The solution is to resolve the default on the fly each time an instance is created.
--
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
[GitHub] [airflow] dstandish merged pull request #26536: Add fixture for CLI tests requiring sample dags
Posted by GitBox <gi...@apache.org>.
dstandish merged PR #26536:
URL: https://github.com/apache/airflow/pull/26536
--
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