mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore: proper current_app.config proxy usage (#34345)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
6c9cda758a
commit
cb27d5fe8d
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user