mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
refactor: rename get_sqla_engine_with_context (#28012)
This commit is contained in:
@@ -37,7 +37,7 @@ UNICODE_TBL_NAME = "unicode_test"
|
||||
@pytest.fixture(scope="session")
|
||||
def load_unicode_data():
|
||||
with app.app_context():
|
||||
with get_example_database().get_sqla_engine_with_context() as engine:
|
||||
with get_example_database().get_sqla_engine() as engine:
|
||||
_get_dataframe().to_sql(
|
||||
UNICODE_TBL_NAME,
|
||||
engine,
|
||||
@@ -51,7 +51,7 @@ def load_unicode_data():
|
||||
|
||||
yield
|
||||
with app.app_context():
|
||||
with get_example_database().get_sqla_engine_with_context() as engine:
|
||||
with get_example_database().get_sqla_engine() as engine:
|
||||
engine.execute("DROP TABLE IF EXISTS unicode_test")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user