mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_payment_mode: test performance improvement
- Include context keys for avoiding mail operations overhead.
This commit is contained in:
committed by
Sébastien Alix
parent
406173576b
commit
fb443140a8
@@ -4,12 +4,14 @@
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
|
||||
|
||||
|
||||
class TestAccountPaymentMode(TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
|
||||
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
|
||||
|
||||
cls.res_users_model = cls.env["res.users"]
|
||||
cls.journal_model = cls.env["account.journal"]
|
||||
|
||||
Reference in New Issue
Block a user