mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
This reverts commit 7645fc85c3.
This commit is contained in:
@@ -58,7 +58,9 @@ class TestChartApi(SupersetTestCase, ApiOwnersTestCaseMixin):
|
||||
for owner in owners:
|
||||
user = db.session.query(security_manager.user_model).get(owner)
|
||||
obj_owners.append(user)
|
||||
datasource = ConnectorRegistry.get_datasource(datasource_type, datasource_id)
|
||||
datasource = ConnectorRegistry.get_datasource(
|
||||
datasource_type, datasource_id, db.session
|
||||
)
|
||||
slice = Slice(
|
||||
slice_name=slice_name,
|
||||
datasource_id=datasource.id,
|
||||
|
||||
Reference in New Issue
Block a user