potiuk commented on code in PR #38188:
URL: https://github.com/apache/airflow/pull/38188#discussion_r1527167022


##########
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"},

Review Comment:
   Yeah. Likely revieweing and creating our own pytest plugin for those is a 
better idea for a follow up PR :) 



-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to