mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
refactor(test): rollback on tearDown
This commit is contained in:
@@ -139,6 +139,9 @@ class ERPNextTestSuite(unittest.TestCase):
|
|||||||
cls.make_presets()
|
cls.make_presets()
|
||||||
cls.make_persistent_master_data()
|
cls.make_persistent_master_data()
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
frappe.db.rollback()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def load_test_records(cls, doctype):
|
def load_test_records(cls, doctype):
|
||||||
if doctype not in cls.globalTestRecords:
|
if doctype not in cls.globalTestRecords:
|
||||||
|
|||||||
Reference in New Issue
Block a user