You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/01/22 17:20:56 UTC
(superset) branch master updated: chore: silence SECRET_KEY warning when running tests (#26703)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new f46121dba9 chore: silence SECRET_KEY warning when running tests (#26703)
f46121dba9 is described below
commit f46121dba9e6c316e93959e5a8e082f56cecb82b
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Mon Jan 22 09:20:48 2024 -0800
chore: silence SECRET_KEY warning when running tests (#26703)
---
tests/integration_tests/superset_test_config.py | 1 +
tests/integration_tests/superset_test_config_thumbnails.py | 1 +
2 files changed, 2 insertions(+)
diff --git a/tests/integration_tests/superset_test_config.py b/tests/integration_tests/superset_test_config.py
index 2aeeb3004e..31d57b06e0 100644
--- a/tests/integration_tests/superset_test_config.py
+++ b/tests/integration_tests/superset_test_config.py
@@ -31,6 +31,7 @@ logging.getLogger("flask_appbuilder.api").setLevel(logging.WARNING)
logging.getLogger("flask_appbuilder.security.sqla.manager").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"
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(
DATA_DIR, "unittests.integration_tests.db"
diff --git a/tests/integration_tests/superset_test_config_thumbnails.py b/tests/integration_tests/superset_test_config_thumbnails.py
index a761ef6611..245d91382e 100644
--- a/tests/integration_tests/superset_test_config_thumbnails.py
+++ b/tests/integration_tests/superset_test_config_thumbnails.py
@@ -19,6 +19,7 @@ from copy import copy
from superset.config import *
+SECRET_KEY = "dummy_secret_key_for_test_to_silence_warnings"
AUTH_USER_REGISTRATION_ROLE = "alpha"
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(
DATA_DIR, "unittests.integration_tests.db"