fix: tests for python2
This commit is contained in:
parent
ae90ea9547
commit
f2752bf38c
@ -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({
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user