mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 18:34:48 +00:00
refactor(test): speed up setup
This commit is contained in:
@@ -136,8 +136,13 @@ class ERPNextTestSuite(unittest.TestCase):
|
|||||||
if not hasattr(cls, "globalTestRecords"):
|
if not hasattr(cls, "globalTestRecords"):
|
||||||
cls.globalTestRecords = {}
|
cls.globalTestRecords = {}
|
||||||
|
|
||||||
cls.make_presets()
|
if not hasattr(cls, "bootstrap_testsite"):
|
||||||
cls.make_persistent_master_data()
|
cls.bootstrap_testsite = False
|
||||||
|
|
||||||
|
if not cls.bootstrap_testsite:
|
||||||
|
cls.make_presets()
|
||||||
|
cls.make_persistent_master_data()
|
||||||
|
cls.bootstrap_testsite = True
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
frappe.db.rollback()
|
frappe.db.rollback()
|
||||||
|
|||||||
Reference in New Issue
Block a user