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

@@ -18,10 +18,10 @@
import json # noqa: TID251
import pytest
from flask import current_app
from pytest_mock import MockerFixture
from sqlalchemy.orm.session import Session
from superset import app
from superset.migrations.shared.catalogs import (
downgrade_catalog_perms,
upgrade_catalog_perms,
@@ -568,8 +568,8 @@ def test_upgrade_catalog_perms_simplified_migration(
("[my_db].[public]",),
]
with app.test_request_context():
app.config["CATALOGS_SIMPLIFIED_MIGRATION"] = True
with current_app.test_request_context():
current_app.config["CATALOGS_SIMPLIFIED_MIGRATION"] = True
upgrade_catalog_perms()
session.commit()