mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 16:12:53 +00:00
[fix] tests
This commit is contained in:
@@ -375,7 +375,7 @@ def get_address_docs(doctype=None, txt=None, filters=None, limit_start=0, limit_
|
||||
if not party:
|
||||
return []
|
||||
|
||||
address_names = frappe.db.get_all('Dyanamic Link', fields=('parent'),
|
||||
address_names = frappe.db.get_all('Dynamic Link', fields=('parent'),
|
||||
filters=dict(parenttype='Address', link_doctype=party.doctype, link_name=party.name))
|
||||
|
||||
out = []
|
||||
|
||||
@@ -25,8 +25,8 @@ class TestShoppingCart(unittest.TestCase):
|
||||
# test if lead is created and quotation with new lead is fetched
|
||||
quotation = _get_cart_quotation()
|
||||
self.assertEquals(quotation.quotation_to, "Customer")
|
||||
self.assertEquals(frappe.db.get_value("Contact", dict(contact_person="test_cart_user@example.com")),
|
||||
quotation.contact_name)
|
||||
self.assertEquals(frappe.db.get_value("Contact", dict(email_id="test_cart_user@example.com")),
|
||||
quotation.contact_person)
|
||||
self.assertEquals(quotation.lead, None)
|
||||
self.assertEquals(quotation.contact_email, frappe.session.user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user