[fix] tests

This commit is contained in:
Rushabh Mehta
2016-03-31 16:55:21 +05:30
parent 45c6b550f0
commit b04409746e
2 changed files with 4 additions and 5 deletions

View File

@@ -197,8 +197,7 @@ class TestShoppingCart(unittest.TestCase):
def remove_all_items_from_cart(self):
quotation = _get_cart_quotation()
quotation.set("items", [])
quotation.save(ignore_permissions=True)
quotation.delete()
def create_user_if_not_exists(self, email, first_name = None):
if frappe.db.exists("User", email):