From 324bfa9fdec773b468726c3b4622dd4aff9c6dbe Mon Sep 17 00:00:00 2001 From: Sagar Sharma Date: Sat, 5 Nov 2022 16:18:31 +0530 Subject: [PATCH] test: fix test case --- erpnext/controllers/tests/test_subcontracting_controller.py | 1 + .../subcontracting_receipt/test_subcontracting_receipt.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/tests/test_subcontracting_controller.py b/erpnext/controllers/tests/test_subcontracting_controller.py index 8490d14528..0e6fe95d45 100644 --- a/erpnext/controllers/tests/test_subcontracting_controller.py +++ b/erpnext/controllers/tests/test_subcontracting_controller.py @@ -815,6 +815,7 @@ def add_second_row_in_scr(scr): "item_name", "qty", "uom", + "bom", "warehouse", "stock_uom", "subcontracting_order", diff --git a/erpnext/subcontracting/doctype/subcontracting_receipt/test_subcontracting_receipt.py b/erpnext/subcontracting/doctype/subcontracting_receipt/test_subcontracting_receipt.py index 7dcdeebe4d..34e78420d7 100644 --- a/erpnext/subcontracting/doctype/subcontracting_receipt/test_subcontracting_receipt.py +++ b/erpnext/subcontracting/doctype/subcontracting_receipt/test_subcontracting_receipt.py @@ -404,8 +404,8 @@ class TestSubcontractingReceipt(FrappeTestCase): "stock_value_difference", ) - # Service Cost(100 * 10) + Raw Materials Cost(50 * 10) + Additional Costs(100) = 1600 - self.assertEqual(stock_value_difference, 1600) + # Service Cost(100 * 10) + Raw Materials Cost(100 * 10) + Additional Costs(10 * 10) = 2100 + self.assertEqual(stock_value_difference, 2100) self.assertFalse(get_gl_entries("Subcontracting Receipt", scr.name)) def test_subcontracting_receipt_gl_entry(self):