# -*- 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 from odoo.tests.common import users from odoo.tools import config, mute_logger from odoo.tests import tagged @tagged('mass_mailing') class TestMassMailing(TestMailFullCommon): @classmethod def setUpClass(cls): super(TestMassMailing, cls).setUpClass() @users('user_marketing') @mute_logger('odoo.addons.mail.models.mail_mail') def test_mailing_w_blacklist_opt_out(self): # TDE FIXME: better URLs check for unsubscribe / view (res_id + email + correct parse of url) mailing = self.mailing_bl.with_user(self.env.user) jinja_html = '''
Hello ${object.name}
Here are your personal links External link Internal link Unsubscribe link View link