mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
fix:class variable in tests
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user