diff --git a/mail_sent/tests/__init__.py b/mail_sent/tests/__init__.py index c91c41d..3fc40a2 100644 --- a/mail_sent/tests/__init__.py +++ b/mail_sent/tests/__init__.py @@ -1 +1 @@ -from . import test_js +from . import test_js, test_mail_compose diff --git a/mail_sent/tests/test_mail_compose.py b/mail_sent/tests/test_mail_compose.py new file mode 100644 index 0000000..e8bdfdc --- /dev/null +++ b/mail_sent/tests/test_mail_compose.py @@ -0,0 +1,12 @@ +# Copyright 2020 Denis Mudarisov +# License MIT (https://opensource.org/licenses/MIT). + +from odoo.tests.common import HttpCase, tagged + + +@tagged("post_install", "at_install") +class TestSaas(HttpCase): + def test_mail_compose(self): + # this is enough to reproduce the error + # from https://github.com/itpp-labs/mail-addons/issues/290 + self.env["mail.compose.message"].create({})