mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)
This commit is contained in:
@@ -44,6 +44,7 @@ class TestEmbeddedDashboardApi(SupersetTestCase):
|
||||
self.login(ADMIN_USERNAME)
|
||||
self.dash = db.session.query(Dashboard).filter_by(slug="births").first()
|
||||
self.embedded = EmbeddedDashboardDAO.upsert(self.dash, [])
|
||||
db.session.flush()
|
||||
uri = f"api/v1/{self.resource_name}/{self.embedded.uuid}"
|
||||
response = self.client.get(uri)
|
||||
self.assert200(response)
|
||||
|
||||
Reference in New Issue
Block a user