fix: travis
diff --git a/erpnext/crm/doctype/appointment/test_appointment.py b/erpnext/crm/doctype/appointment/test_appointment.py
index 852e0f1..b22e6e0 100644
--- a/erpnext/crm/doctype/appointment/test_appointment.py
+++ b/erpnext/crm/doctype/appointment/test_appointment.py
@@ -47,5 +47,5 @@
         self.assertEqual(cal_event.starts_on ,self.test_appointment.scheduled_time)
 
     def test_lead_linked(self):
-        lead = frappe.get_doc('Lead',self.test_lead)
+        lead = frappe.get_doc('Lead',self.test_lead.name)
         self.assertIsNotNone(lead)
\ No newline at end of file