Removed appointment tests
TODO: Write better tests after adding lead and calender event generation
This commit is contained in:
parent
2d7370a525
commit
5038d6a6db
@ -25,23 +25,4 @@ def delete_appointments():
|
|||||||
|
|
||||||
|
|
||||||
class TestAppointment(unittest.TestCase):
|
class TestAppointment(unittest.TestCase):
|
||||||
def setUp(self):
|
pass
|
||||||
settings = frappe.get_doc('Appointment Booking Settings')
|
|
||||||
create_appointments(settings.number_of_agents)
|
|
||||||
frappe.get_doc({
|
|
||||||
'doctype': 'Appointment',
|
|
||||||
'scheduled_time': datetime.datetime.min,
|
|
||||||
'customer_name': 'Extra Customer',
|
|
||||||
'customer_phone_number': '8088',
|
|
||||||
'customer_skype': 'extra_customer',
|
|
||||||
})
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
delete_appointments()
|
|
||||||
|
|
||||||
def test_number_of_appointments(self):
|
|
||||||
settings = frappe.get_doc('Appointment Booking Settings')
|
|
||||||
self.assertFalse(frappe.db.exists('Apoointment',
|
|
||||||
filters={'scheduled_time': datetime.datetime.min, 'customer_name':'Extra Cu'}),
|
|
||||||
settings.number_of_agents,
|
|
||||||
"Number of appointments exceed number of agents")
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user