mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
refactor: Ensure Flask framework leverages the Flask-SQLAlchemy session (#26200)
This commit is contained in:
@@ -145,7 +145,6 @@ class TestQueryContext(SupersetTestCase):
|
||||
|
||||
# make temporary change and revert it to refresh the changed_on property
|
||||
datasource = DatasourceDAO.get_datasource(
|
||||
session=db.session,
|
||||
datasource_type=DatasourceType(payload["datasource"]["type"]),
|
||||
datasource_id=payload["datasource"]["id"],
|
||||
)
|
||||
@@ -169,7 +168,6 @@ class TestQueryContext(SupersetTestCase):
|
||||
|
||||
# make temporary change and revert it to refresh the changed_on property
|
||||
datasource = DatasourceDAO.get_datasource(
|
||||
session=db.session,
|
||||
datasource_type=DatasourceType(payload["datasource"]["type"]),
|
||||
datasource_id=payload["datasource"]["id"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user