refactor(test): SLA move company creation to bootstrap

This commit is contained in:
ruthra kumar
2026-03-23 15:37:08 +05:30
parent 426b7db3c8
commit 77f41e120d
3 changed files with 21 additions and 32 deletions

View File

@@ -241,6 +241,7 @@ class BootStrapTestData:
self.make_sales_person()
self.make_activity_type()
self.make_address()
self.update_support_settings()
self.update_selling_settings()
self.update_stock_settings()
self.update_system_settings()
@@ -271,6 +272,11 @@ class BootStrapTestData:
system_settings.rounding_method = "Banker's Rounding"
system_settings.save()
def update_support_settings(self):
support_settings = frappe.get_doc("Support Settings")
support_settings.track_service_level_agreement = True
support_settings.save()
def update_selling_settings(self):
selling_settings = frappe.get_doc("Selling Settings")
selling_settings.selling_price_list = "Standard Selling"