From 851dfb16be9bb5e63250f7dbd0fc33f34d800530 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 26 Jun 2026 13:26:48 +0530 Subject: [PATCH] test: reuse BootStrapTestData master data to reduce runtime Co-Authored-By: Claude Opus 4.8 (1M context) --- .../test_incorrect_serial_and_batch_bundle.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/erpnext/stock/report/incorrect_serial_and_batch_bundle/test_incorrect_serial_and_batch_bundle.py b/erpnext/stock/report/incorrect_serial_and_batch_bundle/test_incorrect_serial_and_batch_bundle.py index e0bca85a1b4..806a8d24ad1 100644 --- a/erpnext/stock/report/incorrect_serial_and_batch_bundle/test_incorrect_serial_and_batch_bundle.py +++ b/erpnext/stock/report/incorrect_serial_and_batch_bundle/test_incorrect_serial_and_batch_bundle.py @@ -26,26 +26,20 @@ class TestIncorrectSerialAndBatchBundle(ERPNextTestSuite): "batch_number_series": "ISBB-.#####", } ).name - serial_item = make_item( - properties={ - "is_stock_item": 1, - "has_serial_no": 1, - "serial_no_series": "ISBS-.#####", - } - ).name + serial_item = "_Test Serialized Item With Series" make_stock_entry( item_code=batch_item, qty=10, rate=100, - to_warehouse="_Test Warehouse - _TC", + to_warehouse="Stores - _TC", posting_date="2026-06-01", ) make_stock_entry( item_code=serial_item, qty=3, rate=100, - to_warehouse="_Test Warehouse - _TC", + to_warehouse="Stores - _TC", posting_date="2026-06-01", )