fix(test): ensure warehouse is consistently referenced in asset repair tests

This commit is contained in:
ljain112
2026-03-09 18:54:43 +05:30
parent 0b1746a4c8
commit ed428ceb1c

View File

@@ -327,15 +327,19 @@ class TestAssetRepair(unittest.TestCase):
"""Test that repair cost only includes service (non-stock) item amounts from purchase invoice.""" """Test that repair cost only includes service (non-stock) item amounts from purchase invoice."""
company = "_Test Company with perpetual inventory" company = "_Test Company with perpetual inventory"
warehouse = "Stores - TCP1"
service_item = create_item( service_item = create_item(
"_Test Service Item for Repair", "_Test Service Item for Repair",
is_stock_item=0, is_stock_item=0,
warehouse=warehouse,
company=company, company=company,
) )
stock_item = create_item( stock_item = create_item(
"_Test Stock Item for Repair", "_Test Stock Item for Repair",
is_stock_item=1, is_stock_item=1,
warehouse=warehouse,
company=company, company=company,
) )
@@ -360,7 +364,7 @@ class TestAssetRepair(unittest.TestCase):
"item_code": stock_item.name, "item_code": stock_item.name,
"qty": 2, "qty": 2,
"rate": 300, "rate": 300,
"warehouse": "Stores - TCP1", "warehouse": warehouse,
"cost_center": cost_center, "cost_center": cost_center,
}, },
) )