From c80356c7c9e83a2813e0c2b173d19b033669deea Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 16 Mar 2024 18:06:09 +0530 Subject: [PATCH] test: remove broken bom test These variables never existed, the test was passing because of a bug in timeout decorator https://github.com/frappe/frappe/pull/25491 --- erpnext/manufacturing/doctype/bom/test_bom.py | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/erpnext/manufacturing/doctype/bom/test_bom.py b/erpnext/manufacturing/doctype/bom/test_bom.py index 4cd0530e342..2debf9191ef 100644 --- a/erpnext/manufacturing/doctype/bom/test_bom.py +++ b/erpnext/manufacturing/doctype/bom/test_bom.py @@ -27,28 +27,6 @@ test_dependencies = ["Item", "Quality Inspection Template"] class TestBOM(FrappeTestCase): - @timeout - def test_bom_qty(self): - from erpnext.stock.doctype.item.test_item import make_item - - # No error. - bom = frappe.new_doc("BOM") - item = make_item(properties={"is_stock_item": 1}) - bom.item = fg_item.item_code - bom.quantity = 1 - bom.append( - "items", - { - "item_code": bom_item.item_code, - "qty": 0, - "uom": bom_item.stock_uom, - "stock_uom": bom_item.stock_uom, - "rate": 100.0, - }, - ) - bom.save() - self.assertEqual(bom.items[0].qty, 0) - @timeout def test_get_items(self): from erpnext.manufacturing.doctype.bom.bom import get_bom_items_as_dict