mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
fix: empty leads and appointment in test
This commit is contained in:
@@ -9,7 +9,7 @@ import datetime
|
|||||||
|
|
||||||
def create_test_lead():
|
def create_test_lead():
|
||||||
if frappe.db.exists({'doctype':'Lead','lead_name':'Test Lead'}):
|
if frappe.db.exists({'doctype':'Lead','lead_name':'Test Lead'}):
|
||||||
return
|
return frappe.get_doc('Lead','Test Lead')
|
||||||
test_lead = frappe.get_doc({
|
test_lead = frappe.get_doc({
|
||||||
'doctype':'Lead',
|
'doctype':'Lead',
|
||||||
'lead_name':'Test Lead',
|
'lead_name':'Test Lead',
|
||||||
@@ -23,7 +23,7 @@ def create_test_appointments():
|
|||||||
'doctype':'Appointment',
|
'doctype':'Appointment',
|
||||||
'email':'test@example.com'
|
'email':'test@example.com'
|
||||||
}):
|
}):
|
||||||
return
|
return frappe.get_doc('Appointment','Test Appointment')
|
||||||
test_appointment = frappe.get_doc({
|
test_appointment = frappe.get_doc({
|
||||||
'doctype':'Appointment',
|
'doctype':'Appointment',
|
||||||
'email':'test@example.com',
|
'email':'test@example.com',
|
||||||
|
|||||||
Reference in New Issue
Block a user