diff --git a/account_payment_order/tests/test_bank.py b/account_payment_order/tests/test_bank.py index d5d78bf81..218f96b78 100644 --- a/account_payment_order/tests/test_bank.py +++ b/account_payment_order/tests/test_bank.py @@ -4,8 +4,15 @@ from odoo.exceptions import ValidationError from odoo.tests.common import TransactionCase +from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT + class TestBank(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) + def test_bank(self): bank = self.env["res.bank"].search([], limit=1) self.assertTrue(bank) diff --git a/account_payment_order/tests/test_payment_mode.py b/account_payment_order/tests/test_payment_mode.py index a5c30f520..f1f346cb3 100644 --- a/account_payment_order/tests/test_payment_mode.py +++ b/account_payment_order/tests/test_payment_mode.py @@ -18,7 +18,6 @@ class TestPaymentMode(TransactionCase): AccountPaymentMethod._get_payment_method_information ) - @classmethod def _get_payment_method_information(cls): res = Method_get_payment_method_information(cls) res["IN"] = {"mode": "multi", "domain": [("type", "=", "bank")]}