mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-16 07:58:38 +00:00
test: drop redundant cleanup, db rolls back after each test
(cherry picked from commit 3b1e57966e)
This commit is contained in:
@@ -51,13 +51,6 @@ class TestStockLedgerInvariantCheck(ERPNextTestSuite):
|
||||
sle = frappe.get_last_doc(
|
||||
"Stock Ledger Entry", {"item_code": item, "warehouse": WAREHOUSE, "is_cancelled": 0}
|
||||
)
|
||||
self.addCleanup(
|
||||
frappe.db.set_value,
|
||||
"Stock Ledger Entry",
|
||||
sle.name,
|
||||
"qty_after_transaction",
|
||||
sle.qty_after_transaction,
|
||||
)
|
||||
frappe.db.set_value(
|
||||
"Stock Ledger Entry", sle.name, "qty_after_transaction", sle.qty_after_transaction + 5
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user