diff options
Diffstat (limited to 'addons/test_mass_mailing/tests/test_composer.py')
| -rw-r--r-- | addons/test_mass_mailing/tests/test_composer.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/addons/test_mass_mailing/tests/test_composer.py b/addons/test_mass_mailing/tests/test_composer.py index 4307bc95591..2b43e87e6d9 100644 --- a/addons/test_mass_mailing/tests/test_composer.py +++ b/addons/test_mass_mailing/tests/test_composer.py @@ -1,28 +1,22 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo.addons.test_mail.tests.common import mail_new_test_user -from odoo.tests import common +from odoo.addons.test_mass_mailing.tests import common -class TestComposer(common.SavepointCase): +class TestComposer(common.TestMailCommon): def test_body_responsive(self): """ Testing mail mailing responsive mail body """ - test_user = mail_new_test_user( - self.env, login='geraldine', - groups='mass_mailing.group_mass_mailing_user,base.group_partner_manager' # TDE FIXME: check if really necessary for mass mailing - ) - test_record = self.env['res.partner'].create({'name': 'Mass Mail Partner'}) - mass_mail_record = self.env['mailing.mailing'].with_user(test_user).create({ + mass_mail_record = self.env['mailing.mailing'].with_user(self.user_marketing).create({ 'name': 'Test', 'subject': 'Test', 'state': 'draft', 'mailing_model_id': self.env.ref('base.model_res_partner').id, }) - composer = self.env['mail.compose.message'].with_user(test_user).with_context({ + composer = self.env['mail.compose.message'].with_user(self.user_marketing).with_context({ 'default_composition_mode': 'mass_mail', 'default_model': 'res.partner', 'default_res_id': test_record.id, |
