From 2fe2db6015dd243406788d767adb79d0a3cbce56 Mon Sep 17 00:00:00 2001 From: Denis Mudarisov Date: Fri, 1 May 2020 19:54:28 +0500 Subject: [PATCH] :shield: catch error from #290 --- mail_sent/tests/__init__.py | 2 +- mail_sent/tests/test_mail_compose.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 mail_sent/tests/test_mail_compose.py 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({})