fix:add tear down to tests

This commit is contained in:
Pranav Nachanekar 2019-10-03 13:32:46 +05:30
parent 59c543570a
commit 1dccc039b7

View File

@ -40,10 +40,11 @@ class TestAppointment(unittest.TestCase):
test_appointment = test_lead = None
def setUp(self):
test_lead = create_test_lead()
test_appointment = test_create_test_appointments()
test_appointment = create_test_appointments()
def tearDown(self):
pass
test_appointment.delete()
test_lead.delete()
def test_calendar_event_created(self):
cal_event = frappe.get_doc('Event',test_appointment.calendar_event)