test: specify warehouse list to avoid error (#25174)

* test: specify warehouse list to avoid error

* test: get_all_warehouses of BOM company
This commit is contained in:
Sagar Vora 2021-04-03 19:46:44 +05:30 committed by GitHub
parent b7481633b1
commit cce3efe0c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,13 @@ class TestBOM(unittest.TestCase):
bom.items[0].conversion_factor = 6 bom.items[0].conversion_factor = 6
bom.insert() bom.insert()
reset_item_valuation_rate(item_code='_Test Item', qty=200, rate=200) reset_item_valuation_rate(
item_code='_Test Item',
warehouse_list=frappe.get_all("Warehouse",
{"is_group":0, "company": bom.company}, pluck="name"),
qty=200,
rate=200
)
bom.update_cost() bom.update_cost()