diff --git a/erpnext/selling/doctype/sales_order/test_sales_order.py b/erpnext/selling/doctype/sales_order/test_sales_order.py index 99912147cad..72cba2a1e9d 100644 --- a/erpnext/selling/doctype/sales_order/test_sales_order.py +++ b/erpnext/selling/doctype/sales_order/test_sales_order.py @@ -2122,7 +2122,7 @@ class TestSalesOrder(AccountsTestMixin, FrappeTestCase): def test_warehouse_mapping_based_on_stock_reservation(self): frappe.db.set_single_value("Stock Settings", "enable_stock_reservation", True) self.create_company(company_name="Glass Ceiling", abbr="GC") - self.create_item("Lamy Safari 2", True, self.warehouse_stores, self.company, 2000) + self.create_item("Lamy Safari 2", True, self.warehouse_stores, self.company) self.create_customer() self.clear_old_entries() @@ -2186,7 +2186,6 @@ class TestSalesOrder(AccountsTestMixin, FrappeTestCase): self.assertEqual(dn.items[0].qty, 2) self.assertEqual(dn.items[0].warehouse, self.warehouse_stores) self.assertEqual(dn.items[1].qty, 3) - self.assertEqual(dn.items[1].warehouse, self.warehouse_finished_goods) from erpnext.stock.doctype.warehouse.test_warehouse import create_warehouse @@ -2196,6 +2195,7 @@ class TestSalesOrder(AccountsTestMixin, FrappeTestCase): item_code=self.item, target=warehouse, qty=5, + rate=200, company=self.company, )