2
0

[IMP] account_lock_date_update: test performance improvement

- Include context keys for avoiding mail operations overhead.
This commit is contained in:
josep-tecnativa 2023-10-13 12:30:27 +02:00
parent 2c8b8c59ca
commit 557ab8ce3e

View File

@ -10,6 +10,16 @@ class TestAccountLockDateUpdate(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(
context=dict(
cls.env.context,
mail_create_nolog=True,
mail_create_nosubscribe=True,
mail_notrack=True,
no_reset_password=True,
tracking_disable=True,
)
)
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.company = cls.env.ref("base.main_company")
cls.demo_user = cls.env.ref("base.user_demo")