From f46121dba9e6c316e93959e5a8e082f56cecb82b Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 22 Jan 2024 09:20:48 -0800 Subject: [PATCH] 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"