commit | f2752bf38c20e872b044fbe93d97f09f9fdbed00 | [log] [tgz] |
---|---|---|
author | 0Pranav <prnvnachnekar@gmail.com> | Mon Nov 25 14:09:49 2019 +0530 |
committer | 0Pranav <prnvnachnekar@gmail.com> | Mon Nov 25 14:09:49 2019 +0530 |
tree | 7d67e246788d3c67e9dfa4faf7ae61ca11d650ae | |
parent | ae90ea9547d934ae6ee596c72bacb5cde41731d0 [diff] |
fix: tests for python2
diff --git a/erpnext/crm/doctype/appointment/test_appointment.py b/erpnext/crm/doctype/appointment/test_appointment.py index 72c2ae5..50c98c5 100644 --- a/erpnext/crm/doctype/appointment/test_appointment.py +++ b/erpnext/crm/doctype/appointment/test_appointment.py
@@ -23,7 +23,7 @@ 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({
diff --git a/erpnext/crm/doctype/appointment_booking_settings/appointment_booking_settings.py b/erpnext/crm/doctype/appointment_booking_settings/appointment_booking_settings.py index 82acd93..eff8b98 100644 --- a/erpnext/crm/doctype/appointment_booking_settings/appointment_booking_settings.py +++ b/erpnext/crm/doctype/appointment_booking_settings/appointment_booking_settings.py
@@ -19,7 +19,7 @@ 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: