Purpose of this commit is to use the newly introduced helper to create test users in a quick way and reduce code duplication. This commit is linked to task ID 1889703 and PR #27526.
25 lines
768 B
Python
25 lines
768 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.test_mail.tests import common
|
|
from odoo.addons.test_mail.tests.common import mail_new_test_user
|
|
from odoo.tests import tagged
|
|
|
|
|
|
@tagged('mass_mail')
|
|
class MassMailingCase(common.MockEmails, common.BaseFunctionalTest):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super(MassMailingCase, cls).setUpClass()
|
|
|
|
# be sure for some common data
|
|
cls.user_employee.write({
|
|
'login': 'emp',
|
|
})
|
|
|
|
cls.user_marketing = mail_new_test_user(
|
|
cls.env, login='marketing',
|
|
groups='base.group_user,mass_mailing.group_mass_mailing_user',
|
|
name='Martial Marketing', signature='--\nMartial')
|