Browse Source

🛡️ catch error from #290

pull/291/head
Denis Mudarisov 5 years ago
parent
commit
2fe2db6015
No known key found for this signature in database GPG Key ID: B9AD74DAFB7B53DA
  1. 2
      mail_sent/tests/__init__.py
  2. 12
      mail_sent/tests/test_mail_compose.py

2
mail_sent/tests/__init__.py

@ -1 +1 @@
from . import test_js
from . import test_js, test_mail_compose

12
mail_sent/tests/test_mail_compose.py

@ -0,0 +1,12 @@
# Copyright 2020 Denis Mudarisov <https://github.com/trojikman>
# 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({})
Loading…
Cancel
Save