Taragolis commented on code in PR #38188:
URL: https://github.com/apache/airflow/pull/38188#discussion_r1527149757
##########
tests/conftest.py:
##########
@@ -36,6 +37,34 @@
assert "airflow" not in sys.modules, "No airflow module can be imported before
these lines"
+# Clear all Environment Variables that might have side effect,
+# For example, defined in /files/airflow-breeze-config/variables.env
+_AIRFLOW_CONFIG_PATTERN = re.compile(r"^AIRFLOW__(.+)__(.+)$")
+_KEEP_CONFIGS_SETTINGS: dict[str, dict[str, set[str]]] = {
+ # Keep always these configurations
+ "always": {
+ "database": {"sql_alchemy_conn"},
+ "core": {"sql_alchemy_conn"},
+ "celery": {"result_backend", "broker_url"},
Review Comment:
I'm sure why we need to have this configs by successful run unit tests. If
it required to iterate with Database then I guess we need to move this tests
into the integration, if only for some test configuration, then better
configure in specific cases. But this just for thinking and maybe resolve as
follow up
--
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]