test: Make Variant if absent in test_variant_work_order, keep test atomic

This commit is contained in:
marination 2022-02-23 14:54:16 +05:30
parent bf8743713d
commit 5ff3705872

View File

@ -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",