fix:class variable in tests

This commit is contained in:
Pranav Nachanekar 2019-10-03 15:29:09 +05:30
parent 42cf5f279f
commit 43331564b4

View File

@ -44,11 +44,10 @@ class TestAppointment(unittest.TestCase):
def tearDown(self): def tearDown(self):
self.test_appointment.delete() self.test_appointment.delete()
self.test_lead.delete()
def test_calendar_event_created(self): def test_calendar_event_created(self):
cal_event = frappe.get_doc('Event',test_appointment.calendar_event) cal_event = frappe.get_doc('Event',self.test_appointment.calendar_event)
self.assertEqual(cal_event.starts_on ,test_appointment.scheduled_time) self.assertEqual(cal_event.starts_on ,self.test_appointment.scheduled_time)
def test_lead_linked(self): def test_lead_linked(self):
lead = frappe.get_doc('Lead',self.lead) lead = frappe.get_doc('Lead',self.lead)