mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: test case
This commit is contained in:
@@ -9,7 +9,7 @@ import datetime
|
|||||||
|
|
||||||
|
|
||||||
def create_test_lead():
|
def create_test_lead():
|
||||||
test_lead = frappe.db.exists({'doctype': 'Lead', 'email':'test@example.com'})
|
test_lead = frappe.db.exists({'doctype': 'Lead', 'email_id':'test@example.com'})
|
||||||
if test_lead:
|
if test_lead:
|
||||||
return frappe.get_doc('Lead', test_lead[0][0])
|
return frappe.get_doc('Lead', test_lead[0][0])
|
||||||
test_lead = frappe.get_doc({
|
test_lead = frappe.get_doc({
|
||||||
|
|||||||
Reference in New Issue
Block a user