[fixes] test case import fix

This commit is contained in:
Saurabh 2015-10-22 10:43:29 +05:30
parent 8a8ef85174
commit d8930a776d

View File

@ -297,7 +297,7 @@ class TestSalesOrder(unittest.TestCase):
frappe.db.set_value("Stock Settings", None, "auto_insert_price_list_rate_if_missing", 1)
def test_drop_shipping(self):
from erpnext.selling.doctype.sales_order.sales_order import make_drop_shipment, make_delivery_note
from erpnext.selling.doctype.sales_order.sales_order import make_purchase_order_for_drop_shipment, make_delivery_note
from erpnext.stock.doctype.item.test_item import make_item
po_item = make_item("_Test Item for Drop Shipping", {"is_stock_item": 1, "is_sales_item": 1,
@ -326,7 +326,7 @@ class TestSalesOrder(unittest.TestCase):
]
so = make_sales_order(item_list=so_items)
po = make_drop_shipment(so.name, '_Test Supplier')
po = make_purchase_order_for_drop_shipment(so.name, '_Test Supplier')
dn = make_delivery_note(so.name)
self.assertEquals(so.customer, po.customer)