refactor(test): update system settings in super()

This commit is contained in:
ruthra kumar
2025-06-20 20:42:04 +05:30
parent 6572dc286a
commit 0b14d1fe34

View File

@@ -200,9 +200,17 @@ class ERPNextTestSuite(unittest.TestCase):
cls.make_price_list()
cls.update_selling_settings()
cls.update_stock_settings()
cls.update_system_settings()
frappe.db.commit()
@classmethod
def update_system_settings(cls):
system_settings = frappe.get_doc("System Settings")
system_settings.time_zone = "Asia/Kolkata"
system_settings.language = "en"
system_settings.save()
@classmethod
def update_selling_settings(cls):
selling_settings = frappe.get_doc("Selling Settings")