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