fix: reset default after test
diff --git a/erpnext/accounts/test/test_utils.py b/erpnext/accounts/test/test_utils.py
index 51141d3..c439d4b 100644
--- a/erpnext/accounts/test/test_utils.py
+++ b/erpnext/accounts/test/test_utils.py
@@ -23,7 +23,8 @@
super(TestUtils, cls).setUpClass()
make_test_objects("Address", ADDRESS_RECORDS)
- def tearDown(self):
+ @classmethod
+ def tearDownClass(cls):
frappe.db.rollback()
def test_get_party_shipping_address(self):
@@ -150,7 +151,6 @@
"Supplier", None, "autoname", "SUP-.FY.-.#####", "Data", for_doctype="Doctype"
)
- # Create Fiscal Year for Current Year
fiscal_year = get_fiscal_year(nowdate())[0]
# Create Supplier
@@ -160,6 +160,7 @@
doc_name = supplier.name.split("-")
self.assertEqual(len(doc_name), 3)
self.assertSequenceEqual(doc_name[0:2], ("SUP", fiscal_year))
+ frappe.db.set_default("supp_master_name", "Supplier Name")
ADDRESS_RECORDS = [