test: Make Variant if absent in test_variant_work_order
, keep test atomic
This commit is contained in:
parent
bf8743713d
commit
5ff3705872
@ -691,6 +691,8 @@ class TestStockEntry(ERPNextTestCase):
|
||||
bom_no = frappe.db.get_value("BOM", {"item": "_Test Variant Item",
|
||||
"is_default": 1, "docstatus": 1})
|
||||
|
||||
make_item_variant() # make variant of _Test Variant Item if absent
|
||||
|
||||
work_order = frappe.new_doc("Work Order")
|
||||
work_order.update({
|
||||
"company": "_Test Company",
|
||||
|
Loading…
Reference in New Issue
Block a user