fix:appointment tests exist check
diff --git a/erpnext/crm/doctype/appointment/test_appointment.py b/erpnext/crm/doctype/appointment/test_appointment.py
index bc7fe72..9b87c79 100644
--- a/erpnext/crm/doctype/appointment/test_appointment.py
+++ b/erpnext/crm/doctype/appointment/test_appointment.py
@@ -8,7 +8,7 @@
import datetime
def create_test_lead():
- if frappe.db.exists('Lead',filters={'lead_name':'Test Lead'}):
+ if frappe.db.exists({'doctype:''Lead','lead_name':'Test Lead'}):
return
test_lead = frappe.get_doc({
'doctype':'Lead',
@@ -19,7 +19,10 @@
return test_lead
def create_test_appointments():
- if frappe.db.exists('Appointment',filters={'email':'test@example.com'}):
+ if frappe.db.exists({
+ 'doctype':'Appointment',
+ 'email':'test@example.com'
+ }):
return
test_appointment = frappe.get_doc({
'doctype':'Appointment',