mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)
This commit is contained in:
@@ -592,7 +592,6 @@ class TestImportDashboardsCommand(SupersetTestCase):
|
||||
}
|
||||
command = v1.ImportDashboardsCommand(contents, overwrite=True)
|
||||
command.run()
|
||||
command.run()
|
||||
|
||||
new_num_dashboards = db.session.query(Dashboard).count()
|
||||
assert new_num_dashboards == num_dashboards + 1
|
||||
|
||||
Reference in New Issue
Block a user