From fd2bf93b50dede1b6777f7199acc1f5baf65dba4 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 18 Mar 2015 17:56:09 +0530 Subject: [PATCH] test case fix --- erpnext/stock/doctype/stock_entry/test_stock_entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py index 333be71927..399589d671 100644 --- a/erpnext/stock/doctype/stock_entry/test_stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/test_stock_entry.py @@ -782,8 +782,8 @@ class TestStockEntry(unittest.TestCase): rm_cost += flt(d.amount) fg_cost = filter(lambda x: x.item_code=="_Test FG Item 2", stock_entry.get("items"))[0].amount - - self.assertEqual(fg_cost, rm_cost + bom_operation_cost + stock_entry.additional_operating_cost) + self.assertEqual(fg_cost, + flt(rm_cost + bom_operation_cost + stock_entry.additional_operating_cost, 2)) def test_variant_production_order(self):