Skip to content

Commit

Permalink
[IMP] product_brand: test performance improvement
Browse files Browse the repository at this point in the history
- Include context keys for avoiding mail operations overhead.
  • Loading branch information
josep-tecnativa committed Oct 17, 2023
1 parent e7eb34a commit fbc3902
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion product_brand/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ class CommonCase(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,
mail_create_nolog=True,
mail_create_nosubscribe=True,
mail_notrack=True,
no_reset_password=True,
tracking_disable=True,
)
)
cls.product = cls.env.ref("product.product_product_4")
cls.supplier = cls.env.ref("base.res_partner_2")
cls.product_brand_obj = cls.env["product.brand"]
Expand Down

0 comments on commit fbc3902

Please sign in to comment.