mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
test: Fixes in test case
This commit is contained in:
@@ -27,6 +27,8 @@ class TestBankClearance(unittest.TestCase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
frappe.db.set_single_value("Accounts Settings", "delete_linked_ledger_entries", 1)
|
||||||
|
|
||||||
payment_entry = frappe.get_doc(
|
payment_entry = frappe.get_doc(
|
||||||
"Payment Entry", {"party_name": "_Test Supplier", "paid_from": "_Test Bank Clearance - _TC"}
|
"Payment Entry", {"party_name": "_Test Supplier", "paid_from": "_Test Bank Clearance - _TC"}
|
||||||
)
|
)
|
||||||
@@ -63,6 +65,8 @@ class TestBankClearance(unittest.TestCase):
|
|||||||
loan.flags.ignore_links = True
|
loan.flags.ignore_links = True
|
||||||
loan.delete()
|
loan.delete()
|
||||||
|
|
||||||
|
frappe.db.set_single_value("Accounts Settings", "delete_linked_ledger_entries", 0)
|
||||||
|
|
||||||
# Basic test case to test if bank clearance tool doesn't break
|
# Basic test case to test if bank clearance tool doesn't break
|
||||||
# Detailed test can be added later
|
# Detailed test can be added later
|
||||||
def test_bank_clearance(self):
|
def test_bank_clearance(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user