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:
@@ -543,8 +543,7 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
|
||||
# make sure the columns have been mapped properly
|
||||
assert len(table.columns) == 4
|
||||
with db.session.no_autoflush:
|
||||
table.fetch_metadata(commit=False)
|
||||
table.fetch_metadata()
|
||||
|
||||
# assert that the removed column has been dropped and
|
||||
# the physical and calculated columns are present
|
||||
|
||||
Reference in New Issue
Block a user