refactor: rename get_sqla_engine_with_context (#28012)

This commit is contained in:
Beto Dealmeida
2024-04-12 13:31:05 -04:00
committed by GitHub
parent 06077d42a8
commit 99a1601aea
45 changed files with 99 additions and 100 deletions

View File

@@ -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")