refactor(test): speed up setup

This commit is contained in:
ruthra kumar
2026-02-26 17:14:56 +05:30
parent fc8fadf455
commit 96b82624cd

View File

@@ -136,8 +136,13 @@ class ERPNextTestSuite(unittest.TestCase):
if not hasattr(cls, "globalTestRecords"):
cls.globalTestRecords = {}
cls.make_presets()
cls.make_persistent_master_data()
if not hasattr(cls, "bootstrap_testsite"):
cls.bootstrap_testsite = False
if not cls.bootstrap_testsite:
cls.make_presets()
cls.make_persistent_master_data()
cls.bootstrap_testsite = True
def tearDown(self):
frappe.db.rollback()