diff --git a/erpnext/accounts/doctype/share_transfer/test_share_transfer.py b/erpnext/accounts/doctype/share_transfer/test_share_transfer.py index b74d6d6a820..44ab09999b5 100644 --- a/erpnext/accounts/doctype/share_transfer/test_share_transfer.py +++ b/erpnext/accounts/doctype/share_transfer/test_share_transfer.py @@ -79,7 +79,7 @@ class TestShareTransfer(unittest.TestCase): } ] for d in share_transfers: - frappe.get_doc(d).insert() + frappe.get_doc(d).submit() def test_invalid_share_transfer(self): doc = frappe.get_doc({ diff --git a/erpnext/stock/doctype/batch/test_batch.py b/erpnext/stock/doctype/batch/test_batch.py index da615abd2f4..343d517c236 100644 --- a/erpnext/stock/doctype/batch/test_batch.py +++ b/erpnext/stock/doctype/batch/test_batch.py @@ -37,7 +37,7 @@ class TestBatch(unittest.TestCase): item_code='ITEM-BATCH-1', qty=batch_qty, rate=10, - warehouse= 'Stores - W' + warehouse= 'Stores - WP' ) ] )).insert()