fix:appointment tests exist check

This commit is contained in:
Pranav Nachanekar 2019-09-30 12:40:25 +05:30
parent fd46bf2616
commit 250bae2603

View File

@ -19,7 +19,10 @@ def create_test_lead():
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',