fix: tests for python2

This commit is contained in:
0Pranav 2019-11-25 14:09:49 +05:30
parent ae90ea9547
commit f2752bf38c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -19,7 +19,7 @@ class AppointmentBookingSettings(Document):
def save(self):
self.number_of_agents = len(self.agent_list)
super().save()
super(AppointmentBookingSettings,self).save()
def validate_availability_of_slots(self):
for record in self.availability_of_slots: