From b11a2c3e9f8732d54249c235746687934758338f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 26 Jun 2026 13:27:19 +0530 Subject: [PATCH] test: reuse BootStrapTestData master data to reduce runtime Co-Authored-By: Claude Opus 4.8 (1M context) --- erpnext/stock/report/item_where_used/test_item_where_used.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/stock/report/item_where_used/test_item_where_used.py b/erpnext/stock/report/item_where_used/test_item_where_used.py index deff9688060..1a765f95d3a 100644 --- a/erpnext/stock/report/item_where_used/test_item_where_used.py +++ b/erpnext/stock/report/item_where_used/test_item_where_used.py @@ -3,7 +3,6 @@ import frappe -from erpnext.stock.doctype.item.test_item import make_item from erpnext.stock.report.item_where_used.item_where_used import execute from erpnext.tests.utils import ERPNextTestSuite @@ -16,8 +15,8 @@ class TestItemWhereUsed(ERPNextTestSuite): return execute(filters)[1] def test_item_used_in_bom_listed(self): - raw_material = make_item(properties={"is_stock_item": 1}).name - finished_good = make_item(properties={"is_stock_item": 1}).name + raw_material = "_Test Item" + finished_good = "_Test FG Item" bom = frappe.get_doc( {