more fixes in test records

This commit is contained in:
Neil Trini Lasrado 2015-06-04 17:37:26 +05:30
parent 203cb10ef7
commit c761fefb78

View File

@ -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):