[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
This commit is contained in:
Thibault Delavallée
2020-12-23 15:16:13 +00:00
parent b25b89b1c7
commit 620b9e24de
3 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -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
@@ -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):
-1
View File
@@ -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