*: website This is the forward-port of a stable dependency fix, needed as it includes a test. The dependency was properly fixed with [1]. [1]: https://github.com/odoo/odoo/commit/d4984b81e6b244297e192f2be2768ed11da170aa closes odoo/odoo#65530 X-original-commit: 76e1495b0d5eab8fc03b6daf51dbc1c148c7de53 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
17 lines
599 B
Python
17 lines
599 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import odoo
|
|
import odoo.tests
|
|
|
|
|
|
@odoo.tests.common.tagged('post_install', '-at_install')
|
|
class TestSnippets(odoo.tests.HttpCase):
|
|
|
|
def test_01_newsletter_popup(self):
|
|
self.start_tour("/?enable_editor=1", "newsletter_popup_edition", login='admin')
|
|
self.start_tour("/", "newsletter_popup_use", login=None)
|
|
mailing_list = self.env['mailing.list'].search([], limit=1)
|
|
emails = mailing_list.contact_ids.mapped('email')
|
|
self.assertIn("hello@world.com", emails)
|