mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
refactor(test): update system settings in super()
This commit is contained in:
@@ -200,9 +200,17 @@ class ERPNextTestSuite(unittest.TestCase):
|
|||||||
cls.make_price_list()
|
cls.make_price_list()
|
||||||
cls.update_selling_settings()
|
cls.update_selling_settings()
|
||||||
cls.update_stock_settings()
|
cls.update_stock_settings()
|
||||||
|
cls.update_system_settings()
|
||||||
|
|
||||||
frappe.db.commit()
|
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
|
@classmethod
|
||||||
def update_selling_settings(cls):
|
def update_selling_settings(cls):
|
||||||
selling_settings = frappe.get_doc("Selling Settings")
|
selling_settings = frappe.get_doc("Selling Settings")
|
||||||
|
|||||||
Reference in New Issue
Block a user