mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
more fixes in test records
This commit is contained in:
@@ -72,6 +72,18 @@ class TestStockEntry(unittest.TestCase):
|
|||||||
self._test_auto_material_request("_Test Item")
|
self._test_auto_material_request("_Test Item")
|
||||||
|
|
||||||
def test_auto_material_request_for_variant(self):
|
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")
|
self._test_auto_material_request("_Test Variant Item-S")
|
||||||
|
|
||||||
def _test_auto_material_request(self, item_code):
|
def _test_auto_material_request(self, item_code):
|
||||||
|
|||||||
Reference in New Issue
Block a user