mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: proper current_app.config proxy usage (#34345)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
6c9cda758a
commit
cb27d5fe8d
@@ -18,10 +18,11 @@ import logging
|
||||
|
||||
import click
|
||||
from colorama import Fore
|
||||
from flask import current_app
|
||||
from flask.cli import with_appcontext
|
||||
|
||||
import superset.utils.database as database_utils
|
||||
from superset import app, security_manager
|
||||
from superset import security_manager
|
||||
from superset.utils.decorators import transaction
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -38,7 +39,7 @@ def load_test_users() -> None:
|
||||
"""
|
||||
print(Fore.GREEN + "Loading a set of users for unit tests")
|
||||
|
||||
if app.config["TESTING"]:
|
||||
if current_app.config["TESTING"]:
|
||||
sm = security_manager
|
||||
|
||||
examples_db = database_utils.get_example_database()
|
||||
|
||||
Reference in New Issue
Block a user