From bb51e3147c0c376ee50c0ddee9c331591b6566d4 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Thu, 29 Jan 2026 10:33:43 +0530 Subject: [PATCH] refactor(test): make auto match party deterministic --- .../doctype/bank_transaction/test_auto_match_party.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/erpnext/accounts/doctype/bank_transaction/test_auto_match_party.py b/erpnext/accounts/doctype/bank_transaction/test_auto_match_party.py index da8239ac6ac..bb1e436c5f7 100644 --- a/erpnext/accounts/doctype/bank_transaction/test_auto_match_party.py +++ b/erpnext/accounts/doctype/bank_transaction/test_auto_match_party.py @@ -12,19 +12,11 @@ IBAN_2 = "DE02500105170137075030" class TestAutoMatchParty(ERPNextTestSuite): - @classmethod - def setUpClass(cls): - super().setUpClass() + def setUp(self): create_bank_account() frappe.db.set_single_value("Accounts Settings", "enable_party_matching", 1) frappe.db.set_single_value("Accounts Settings", "enable_fuzzy_matching", 1) - @classmethod - def tearDownClass(cls): - frappe.db.set_single_value("Accounts Settings", "enable_party_matching", 0) - frappe.db.set_single_value("Accounts Settings", "enable_fuzzy_matching", 0) - super().tearDownClass() - def test_match_by_account_number(self): create_supplier_for_match(account_no=IBAN_1[11:]) doc = create_bank_transaction(