[FIX] test_mail_full: fix overlapping class names

It is better to use another naming than re-using class names. Somehow it
seems sometimes we have MRO issues.

Task ID-2390314
PR odoo/odoo#62384

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Thibault Delavallée
2020-11-26 11:00:25 +00:00
parent 7ca9cdd392
commit 31b2c5925f
7 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -13,11 +13,11 @@ class TestMailFullCommon(TestMassMailCommon, MassSMSCommon):
super(TestMailFullCommon, cls).setUpClass()
class TestRecipients(common.TestRecipients):
class TestMailFullRecipients(common.TestRecipients):
@classmethod
def setUpClass(cls):
super(TestRecipients, cls).setUpClass()
super(TestMailFullRecipients, cls).setUpClass()
cls.partner_numbers = [
phone_validation.phone_format(partner.mobile, partner.country_id.code, partner.country_id.phone_code, force_format='E164')
for partner in (cls.partner_1 | cls.partner_2)
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestRecipients
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestMailFullRecipients
class TestPhoneBlacklist(TestMailFullCommon, TestRecipients):
class TestPhoneBlacklist(TestMailFullCommon, TestMailFullRecipients):
""" TODO """
@classmethod
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestRecipients
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestMailFullRecipients
class TestSMSComposerComment(TestMailFullCommon, TestRecipients):
class TestSMSComposerComment(TestMailFullCommon, TestMailFullRecipients):
""" TODO LIST
* add test for default_res_model / default_res_id and stuff like that;
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestRecipients
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestMailFullRecipients
class TestSMSWizards(TestMailFullCommon, TestRecipients):
class TestSMSWizards(TestMailFullCommon, TestMailFullRecipients):
@classmethod
def setUpClass(cls):
+3 -3
View File
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestRecipients
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestMailFullRecipients
class TestSMSPost(TestMailFullCommon, TestRecipients):
class TestSMSPost(TestMailFullCommon, TestMailFullRecipients):
""" TODO
* add tests for new mail.message and mail.thread fields;
@@ -233,7 +233,7 @@ class TestSMSPost(TestMailFullCommon, TestRecipients):
self.assertSMSNotification([{'partner': self.partner_1, 'number': self.test_numbers_san[1]}], 'Dear %s this is an SMS.' % self.test_record.display_name, messages)
class TestSMSPostException(TestMailFullCommon, TestRecipients):
class TestSMSPostException(TestMailFullCommon, TestMailFullRecipients):
@classmethod
def setUpClass(cls):
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestRecipients
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestMailFullRecipients
class TestServerAction(TestMailFullCommon, TestRecipients):
class TestServerAction(TestMailFullCommon, TestMailFullRecipients):
@classmethod
def setUpClass(cls):
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestRecipients
from odoo.addons.test_mail_full.tests.common import TestMailFullCommon, TestMailFullRecipients
class TestSmsTemplate(TestMailFullCommon, TestRecipients):
class TestSmsTemplate(TestMailFullCommon, TestMailFullRecipients):
@classmethod
def setUpClass(cls):