[IMP] account_lock_date_update: test performance improvement
- Include context keys for avoiding mail operations overhead.
This commit is contained in:
parent
2c8b8c59ca
commit
557ab8ce3e
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user