mirror of https://github.com/apache/superset.git
chore: silence SECRET_KEY warning when running tests (#26703)
This commit is contained in:
parent
ce26ecbd90
commit
f46121dba9
|
@ -31,6 +31,7 @@ logging.getLogger("flask_appbuilder.api").setLevel(logging.WARNING)
|
||||||
logging.getLogger("flask_appbuilder.security.sqla.manager").setLevel(logging.WARNING)
|
logging.getLogger("flask_appbuilder.security.sqla.manager").setLevel(logging.WARNING)
|
||||||
logging.getLogger("sqlalchemy.engine.Engine").setLevel(logging.WARNING)
|
logging.getLogger("sqlalchemy.engine.Engine").setLevel(logging.WARNING)
|
||||||
|
|
||||||
|
SECRET_KEY = "dummy_secret_key_for_test_to_silence_warnings"
|
||||||
AUTH_USER_REGISTRATION_ROLE = "alpha"
|
AUTH_USER_REGISTRATION_ROLE = "alpha"
|
||||||
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(
|
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(
|
||||||
DATA_DIR, "unittests.integration_tests.db"
|
DATA_DIR, "unittests.integration_tests.db"
|
||||||
|
|
|
@ -19,6 +19,7 @@ from copy import copy
|
||||||
|
|
||||||
from superset.config import *
|
from superset.config import *
|
||||||
|
|
||||||
|
SECRET_KEY = "dummy_secret_key_for_test_to_silence_warnings"
|
||||||
AUTH_USER_REGISTRATION_ROLE = "alpha"
|
AUTH_USER_REGISTRATION_ROLE = "alpha"
|
||||||
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(
|
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(
|
||||||
DATA_DIR, "unittests.integration_tests.db"
|
DATA_DIR, "unittests.integration_tests.db"
|
||||||
|
|
Loading…
Reference in New Issue