refactor(test): rollback on tearDown

This commit is contained in:
ruthra kumar
2026-01-28 15:54:52 +05:30
parent 70059d1ec0
commit 6d86bfe2e3

View File

@@ -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: