From 620b9e24de2b6e98e52030a1cdde3df2263c35d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 21 Dec 2020 09:05:08 +0000 Subject: [PATCH] [MOV] (test_)mail: move channel tests into mail SPECIFICATIONS Move channel tests from test_mail directly into mail module. Those tests do not use models specifically introduced in test_mail. As those tests do not target mail.thread features but rather mail models they can be moved into mail directly. LINKS Task ID-2421795 COM PR odoo/odoo#63677 X-original-commit: 8c044735e8e30a80f85bd670eb61daba7645f62c --- addons/mail/tests/__init__.py | 3 ++- addons/{test_mail => mail}/tests/test_mail_channel.py | 8 ++++---- addons/test_mail/tests/__init__.py | 1 - 3 files changed, 6 insertions(+), 6 deletions(-) rename addons/{test_mail => mail}/tests/test_mail_channel.py (99%) diff --git a/addons/mail/tests/__init__.py b/addons/mail/tests/__init__.py index 4a5e1461878..5d739b895b2 100644 --- a/addons/mail/tests/__init__.py +++ b/addons/mail/tests/__init__.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. -from . import common +from . import test_mail_channel from . import test_mail_full_composer from . import test_res_partner from . import test_update_notification diff --git a/addons/test_mail/tests/test_mail_channel.py b/addons/mail/tests/test_mail_channel.py similarity index 99% rename from addons/test_mail/tests/test_mail_channel.py rename to addons/mail/tests/test_mail_channel.py index 168bf51c760..c243dfedfb9 100644 --- a/addons/test_mail/tests/test_mail_channel.py +++ b/addons/mail/tests/test_mail_channel.py @@ -3,12 +3,12 @@ from odoo.tests import tagged from odoo.addons.mail.tests.common import mail_new_test_user -from odoo.addons.test_mail.tests.common import TestMailCommon +from odoo.addons.mail.tests.common import MailCommon from odoo.exceptions import AccessError, ValidationError, UserError from odoo.tools import mute_logger, formataddr -class TestChannelAccessRights(TestMailCommon): +class TestChannelAccessRights(MailCommon): @classmethod def setUpClass(cls): @@ -107,7 +107,7 @@ class TestChannelAccessRights(TestMailCommon): trigger_read = partner.with_user(self.user_portal).name -class TestChannelFeatures(TestMailCommon): +class TestChannelFeatures(MailCommon): @classmethod def setUpClass(cls): @@ -303,7 +303,7 @@ class TestChannelFeatures(TestMailCommon): @tagged('moderation') -class TestChannelModeration(TestMailCommon): +class TestChannelModeration(MailCommon): @classmethod def setUpClass(cls): diff --git a/addons/test_mail/tests/__init__.py b/addons/test_mail/tests/__init__.py index e328b555861..bd72e0bf019 100644 --- a/addons/test_mail/tests/__init__.py +++ b/addons/test_mail/tests/__init__.py @@ -7,7 +7,6 @@ from . import test_mail_composer from . import test_mail_followers from . import test_mail_message from . import test_mail_mail -from . import test_mail_channel from . import test_mail_gateway from . import test_mail_template from . import test_mail_thread_internals