vincbeck commented on code in PR #45009:
URL: https://github.com/apache/airflow/pull/45009#discussion_r1894441843


##########
tests_common/test_utils/db.py:
##########
@@ -84,7 +83,15 @@ def initial_db_init():
     flask_app = Flask(__name__)
     flask_app.config["SQLALCHEMY_DATABASE_URI"] = conf.get("database", 
"SQL_ALCHEMY_CONN")
     init_appbuilder(flask_app)
-    get_auth_manager().init()
+
+    if AIRFLOW_V_3_0_PLUS:
+        from airflow.api_fastapi.app import get_auth_manager
+
+        get_auth_manager().init()
+    else:
+        from airflow.www.extensions.init_auth_manager import get_auth_manager
+
+        get_auth_manager().init()

Review Comment:
   Oops, I just saw that one. It is better I agree



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

Reply via email to