mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 18:45:20 +00:00
refactor(test): move commits inside test guard clause
This commit is contained in:
@@ -120,7 +120,8 @@ class Appointment(Document):
|
||||
self.auto_assign()
|
||||
self.create_calendar_event()
|
||||
self.save(ignore_permissions=True)
|
||||
frappe.db.commit()
|
||||
if not frappe.in_test:
|
||||
frappe.db.commit()
|
||||
|
||||
def create_lead_and_link(self):
|
||||
# Return if already linked
|
||||
|
||||
Reference in New Issue
Block a user