Skip to content

Commit

Permalink
[IMP] crm_phonecall_planner: 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 d3675cd commit a82407b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crm_phonecall_planner/tests/test_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ class PlannerCase(SavepointCase):
@classmethod
def setUpClass(cls):
super(PlannerCase, cls).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.mondays = cls.env["resource.calendar"].create(
{
"name": "mondays",
Expand Down

0 comments on commit a82407b

Please sign in to comment.