mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 21:52:21 +01:00
refactor(test): make bom deterministic
This commit is contained in:
@@ -654,7 +654,7 @@ class TestBOM(ERPNextTestSuite):
|
||||
|
||||
from erpnext.manufacturing.doctype.production_plan.test_production_plan import make_bom
|
||||
|
||||
bom = make_bom(item=fg_item, raw_materials=[rm_item], do_not_save=True)
|
||||
bom = make_bom(item=fg_item, raw_materials=[rm_item], currency="INR", do_not_save=True)
|
||||
|
||||
bom.rm_cost_as_per = "Last Purchase Rate"
|
||||
bom.save()
|
||||
|
||||
@@ -36,15 +36,17 @@
|
||||
"quantity": 1.0
|
||||
},
|
||||
{
|
||||
"scrap_items":[
|
||||
"secondary_items":[
|
||||
{
|
||||
"amount": 2000.0,
|
||||
"doctype": "BOM Scrap Item",
|
||||
"doctype": "BOM Secondary Item",
|
||||
"item_code": "_Test Item Home Desktop 100",
|
||||
"parentfield": "scrap_items",
|
||||
"parentfield": "secondary_items",
|
||||
"stock_qty": 1.0,
|
||||
"rate": 2000.0,
|
||||
"stock_uom": "_Test UOM"
|
||||
"stock_uom": "_Test UOM",
|
||||
"type": "Scrap",
|
||||
"is_legacy": 1
|
||||
}
|
||||
],
|
||||
"items": [
|
||||
|
||||
Reference in New Issue
Block a user