test: explicitly start transaction
Postgres for some reason is going in autocommit mode if transaction isn't started with BEGIN... will fix it separately.
This commit is contained in:
parent
7274014b3b
commit
1fa60ba3e7
1 changed files with 1 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ class FrappeTestCase(unittest.TestCase):
|
|||
def setUpClass(cls) -> None:
|
||||
# flush changes done so far to avoid flake
|
||||
frappe.db.commit()
|
||||
frappe.db.begin()
|
||||
if cls.SHOW_TRANSACTION_COMMIT_WARNINGS:
|
||||
frappe.db.add_before_commit(_commit_watcher)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue