From 55222a5b821fe40d7bd0d9440987c792150e09d9 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Wed, 18 Nov 2015 14:01:02 +0530 Subject: [PATCH] [fixes] test case fixes --- erpnext/selling/doctype/sales_order/test_sales_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/sales_order/test_sales_order.py b/erpnext/selling/doctype/sales_order/test_sales_order.py index 61ee1106e1..bef47baa82 100644 --- a/erpnext/selling/doctype/sales_order/test_sales_order.py +++ b/erpnext/selling/doctype/sales_order/test_sales_order.py @@ -358,7 +358,7 @@ class TestSalesOrder(unittest.TestCase): ordered_qty, reserved_qty = frappe.db.get_value("Bin", {"item_code": po_item.item_code, "warehouse": "_Test Warehouse - _TC"}, ["ordered_qty", "reserved_qty"]) - self.assertEquals(abs(flt(ordered_qty)), existing_ordered_qty + so_items[0]['qty']) + self.assertEquals(abs(flt(ordered_qty)), existing_ordered_qty) self.assertEquals(abs(flt(reserved_qty)), existing_reserved_qty) reserved_qty = frappe.db.get_value("Bin",