Fix POS Profile test

This commit is contained in:
Shreya 2018-06-06 15:59:01 +05:30
parent 71316aaec8
commit 4638d1ab97
2 changed files with 2 additions and 3 deletions

View File

@ -18,8 +18,7 @@ class TestPOSProfile(unittest.TestCase):
doc.append('item_groups', {'item_group': '_Test Item Group'})
doc.append('customer_groups', {'customer_group': '_Test Customer Group'})
doc.save()
items = get_items_list(doc)
items = get_items_list(doc, doc.company)
customers = get_customers_list(doc)
products_count = frappe.db.sql(""" select count(name) from tabItem where item_group = '_Test Item Group'""", as_list=1)

View File

@ -6,7 +6,7 @@
import unittest
import frappe, erpnext
import frappe.defaults
from frappe.utils import cint, flt, cstr, today, random_string, nowdate, add_days
from frappe.utils import cint, flt, cstr, today, random_string
from erpnext.stock.doctype.purchase_receipt.purchase_receipt import make_purchase_invoice
from erpnext import set_perpetual_inventory
from erpnext.stock.doctype.serial_no.serial_no import SerialNoDuplicateError