fix:travis tests

This commit is contained in:
0Pranav 2019-11-25 17:32:02 +05:30
parent f9dec5201f
commit b84e56ebb5

View File

@ -24,7 +24,7 @@ def create_test_lead():
def create_test_appointments(): def create_test_appointments():
test_appointment = frappe.db.exists( test_appointment = frappe.db.exists(
{'doctype': 'Appointment', 'scheduled_time':datetime.datetime.now(),'email':'test@example.com'}) {'doctype': 'Appointment', 'scheduled_time':datetime.datetime.now(),'email':'test@example.com'})
if test_appointment[0][0]: if test_appointment:
return frappe.get_doc('Appointment', test_appointment[0][0]) return frappe.get_doc('Appointment', test_appointment[0][0])
test_appointment = frappe.get_doc({ test_appointment = frappe.get_doc({
'doctype': 'Appointment', 'doctype': 'Appointment',