refactor(test): make subcontracting controller deterministic

This commit is contained in:
ruthra kumar
2026-02-02 19:31:10 +05:30
parent 323a3dd573
commit b4245e9353

View File

@@ -75,6 +75,7 @@ class TestSubcontractingController(ERPNextTestSuite):
sco.create_raw_materials_supplied_or_received()
self.assertIsNotNone(sco.supplied_items)
@ERPNextTestSuite.change_settings("Buying Settings", {"allow_multiple_items": 1})
def test_sco_with_bom(self):
"""
- Set backflush based on BOM.
@@ -741,6 +742,7 @@ class TestSubcontractingController(ERPNextTestSuite):
"doctype": "Serial No",
"item_code": "Subcontracted SRM Item 2",
"serial_no": serial_no,
"company": self.companies[0].name,
}
).insert()