From 3ea89e4d57a2e473e80239e0fc848028582af650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 11 Sep 2023 16:13:56 +0200 Subject: [PATCH] [FIX] test_mail, various: remove extra gateway initialize When inheriting from the mail test class gateway initialization is done automatically. No need to call it again. Task-3453577 (TestMail: Update Alias/Gateway tests for MC) Prepares Task-36879 (Mail: Support MultiCompany Aliases) Part-of: odoo/odoo#135055 --- addons/mail_group/tests/common.py | 2 -- addons/test_crm_full/tests/common.py | 1 - addons/test_event_full/tests/common.py | 1 - 3 files changed, 4 deletions(-) diff --git a/addons/mail_group/tests/common.py b/addons/mail_group/tests/common.py index 03e2c64a478..82e57a2d158 100644 --- a/addons/mail_group/tests/common.py +++ b/addons/mail_group/tests/common.py @@ -55,8 +55,6 @@ class TestMailListCommon(MailCommon): }) cls.test_group_valid_members = cls.test_group_member_1 + cls.test_group_member_2 + cls.test_group_member_4_emp - cls._init_mail_gateway() - # Create some messages cls.test_group_msg_1_pending = cls.env['mail.group.message'].create({ 'subject': 'Test message pending', diff --git a/addons/test_crm_full/tests/common.py b/addons/test_crm_full/tests/common.py index bce1f749eb8..60e0348042b 100644 --- a/addons/test_crm_full/tests/common.py +++ b/addons/test_crm_full/tests/common.py @@ -13,7 +13,6 @@ class TestCrmFullCommon(TestCrmCommon, MockIAPReveal, MockVisitor): @classmethod def setUpClass(cls): super(TestCrmFullCommon, cls).setUpClass() - cls._init_mail_gateway() cls._activate_multi_company() # Context data: dates diff --git a/addons/test_event_full/tests/common.py b/addons/test_event_full/tests/common.py index d3bf3aa5eac..b79b16b574e 100644 --- a/addons/test_event_full/tests/common.py +++ b/addons/test_event_full/tests/common.py @@ -15,7 +15,6 @@ class TestEventFullCommon(EventCrmCase, TestSalesCommon, MockVisitor): @classmethod def setUpClass(cls): super(TestEventFullCommon, cls).setUpClass() - cls._init_mail_gateway() # Context data: dates # ------------------------------------------------------------