From c761fefb780d1b00412cb2db0603ec7855ea6b76 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Thu, 4 Jun 2015 17:37:26 +0530 Subject: [PATCH] more fixes in test records --- .../stock/doctype/stock_entry/test_stock_entry.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py index ff0b272fd52..8114befa2f7 100644 --- a/erpnext/stock/doctype/stock_entry/test_stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/test_stock_entry.py @@ -72,6 +72,18 @@ class TestStockEntry(unittest.TestCase): self._test_auto_material_request("_Test Item") def test_auto_material_request_for_variant(self): + manage_variant = frappe.new_doc("Manage Variants") + manage_variant.update({ + "item": "_Test Variant Item", + "attributes": [ + { + "attribute": "Test Size", + "attribute_value": "Small" + } + ] + }) + manage_variant.generate_combinations() + manage_variant.create_variants() self._test_auto_material_request("_Test Variant Item-S") def _test_auto_material_request(self, item_code):