mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)
This commit is contained in:
@@ -115,7 +115,7 @@ def test_post_with_uuid(
|
||||
payload = response.json
|
||||
assert payload["result"]["uuid"] == "7c1b7880-a59d-47cd-8bf1-f1eb8d2863cb"
|
||||
|
||||
database = db.session.query(Database).one()
|
||||
database = session.query(Database).one()
|
||||
assert database.uuid == UUID("7c1b7880-a59d-47cd-8bf1-f1eb8d2863cb")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user