From 9fd673e498e4204176bcde10dedba40834b82f5c Mon Sep 17 00:00:00 2001 From: marination Date: Wed, 4 May 2022 13:00:00 +0530 Subject: [PATCH] fix: Remove commit from stock entry test. The assertion is not important (cherry picked from commit c449b35cc11615fc7d9e616c2038b9e90c3957d6) --- erpnext/stock/doctype/stock_entry/test_stock_entry.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py index 7dae283ac4..8745ced575 100644 --- a/erpnext/stock/doctype/stock_entry/test_stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/test_stock_entry.py @@ -735,11 +735,6 @@ class TestStockEntry(FrappeTestCase): batch_qty = get_batch_qty(batch_no, "_Test Warehouse - _TC", item.item_code) self.assertEqual(batch_qty, 2) - frappe.db.commit() - - # Cancelling Origin Document of Batch - self.assertRaises(frappe.LinkExistsError, se1.cancel) - frappe.db.rollback() se2.cancel()