mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
chore: return doc if item already exists for test
This commit is contained in:
@@ -38,6 +38,8 @@ class TestBatch(IntegrationTestCase):
|
||||
if not frappe.db.exists("Item", item_name):
|
||||
return make_item(item_name, dict(has_batch_no=1, create_new_batch=1, is_stock_item=1))
|
||||
|
||||
return frappe.get_doc("Item", item_name)
|
||||
|
||||
def test_purchase_receipt(self, batch_qty=100):
|
||||
"""Test automated batch creation from Purchase Receipt"""
|
||||
self.make_batch_item("ITEM-BATCH-1")
|
||||
|
||||
Reference in New Issue
Block a user