[fix] tests

This commit is contained in:
Rushabh Mehta
2017-01-17 12:06:31 +05:30
parent 7c7b3c0ab4
commit 592104ef68
3 changed files with 32 additions and 12 deletions

View File

@@ -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 = []

View File

@@ -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)