refactor(test): make subcontracting order deterministic

This commit is contained in:
ruthra kumar
2026-01-02 15:53:59 +05:30
parent faaad3ae8e
commit ee8e96dbcf
3 changed files with 25 additions and 2 deletions

View File

@@ -1560,7 +1560,7 @@ def make_subcontracted_item(**args):
},
)
args.raw_materials = ["_Test FG Item", "Test Extra Item 1"]
args.raw_materials = ["_Test Extra Item 1", "Test Extra Item 2"]
if not frappe.db.get_value("BOM", {"item": args.item_code}, "name"):
make_bom(item=args.item_code, raw_materials=args.get("raw_materials"))