jason810496 opened a new pull request, #52929:
URL: https://github.com/apache/airflow/pull/52929
related: #52860
## Why
- While working on #52860, I found that current api-server only respect
`--apps` flag with `--dev` mode.
- We use `AIRFLOW_API_APPS` environment to specify which apps are going to
initialize in `create_app` call.
- Also the `AIRFLOW_API_APPS` env is no restored properly, we should set
back to original value if it's set before the `airlow api-server` run.
## What
- Add `with_api_apps_env` decorator with proper teardown
- Refactor `test_api_apps_env` test with more scenario including all apps
currently available, dev mode or not, and original env is set or not.
--
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]