From 5ff3705872960190031066dbe34158ad3c659820 Mon Sep 17 00:00:00 2001 From: marination Date: Wed, 23 Feb 2022 14:54:16 +0530 Subject: [PATCH] test: Make Variant if absent in `test_variant_work_order`, keep test atomic --- erpnext/stock/doctype/stock_entry/test_stock_entry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py index 7ab41418aef..c5afa491666 100644 --- a/erpnext/stock/doctype/stock_entry/test_stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/test_stock_entry.py @@ -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",