From 015cf6fcb9a4f5cda9ea6ccbdecb5ae0cdec84e0 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 20 Jun 2025 15:56:07 +0530 Subject: [PATCH] refactor(test): call super() method first --- .../accounts/doctype/bank_transaction/test_auto_match_party.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 81407aaf06b..da8239ac6ac 100644 --- a/erpnext/accounts/doctype/bank_transaction/test_auto_match_party.py +++ b/erpnext/accounts/doctype/bank_transaction/test_auto_match_party.py @@ -14,15 +14,16 @@ IBAN_2 = "DE02500105170137075030" class TestAutoMatchParty(ERPNextTestSuite): @classmethod def setUpClass(cls): + super().setUpClass() 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) - return super().setUpClass() @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:])