Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][IMP] crm_*: test performance improvement #523

Merged
merged 3 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions crm_phonecall/tests/test_crm_phonecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ class TestCrmPhoneCall(common.SavepointCase):
def setUpClass(cls):
"""Created required data."""
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.company = cls.env.ref("base.main_company")
partner_obj = cls.env["res.partner"]
cls.campaign1 = cls.env["utm.campaign"].create({"name": "campaign 1"})
Expand Down
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
10 changes: 10 additions & 0 deletions crm_project/tests/test_crm_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ class TestCrmProject(common.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.lead = cls.env["crm.lead"].create(
{
"name": "Test lead",
Expand Down
Loading