chore: proper current_app.config proxy usage (#34345)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Maxime Beauchemin
2025-07-31 19:27:42 -07:00
committed by GitHub
parent 6c9cda758a
commit cb27d5fe8d
144 changed files with 1428 additions and 1119 deletions

View File

@@ -230,7 +230,7 @@ class TestThumbnails(SupersetTestCase):
self.login(ALPHA_USERNAME)
with (
patch.dict(
"superset.thumbnails.digest.current_app.config",
"flask.current_app.config",
{
"THUMBNAIL_EXECUTORS": [FixedExecutor(ADMIN_USERNAME)],
},
@@ -258,7 +258,7 @@ class TestThumbnails(SupersetTestCase):
self.login(username)
with (
patch.dict(
"superset.thumbnails.digest.current_app.config",
"flask.current_app.config",
{
"THUMBNAIL_EXECUTORS": [ExecutorType.CURRENT_USER],
},
@@ -308,7 +308,7 @@ class TestThumbnails(SupersetTestCase):
self.login(ADMIN_USERNAME)
with (
patch.dict(
"superset.thumbnails.digest.current_app.config",
"flask.current_app.config",
{
"THUMBNAIL_EXECUTORS": [FixedExecutor(ADMIN_USERNAME)],
},
@@ -336,7 +336,7 @@ class TestThumbnails(SupersetTestCase):
self.login(username)
with (
patch.dict(
"superset.thumbnails.digest.current_app.config",
"flask.current_app.config",
{
"THUMBNAIL_EXECUTORS": [ExecutorType.CURRENT_USER],
},