diff options
| author | Thibault Delavallée <tde@odoo.com> | 2021-03-19 13:31:59 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2021-03-19 16:36:20 +0000 |
| commit | 1a66d9cb57dc17b697b7a56effa91de3a4b50bd7 (patch) | |
| tree | e62caf0cbbca0e8058396112ec4c8577c3a5704c /addons/mail/tests | |
| parent | 3ad9126375e74071fec47f402f1fc63f98b755b6 (diff) | |
[IMP] event: improve tests about communication scheduling
In this commit we improve event communication scheduling tests. We make tests
more detailed and use mail tools to ensure content. We also check scheduled
dates and use freezegun to ease date management.
Related to Task ID-2414658
COM PR odoo/odoo#68158
Diffstat (limited to 'addons/mail/tests')
| -rw-r--r-- | addons/mail/tests/common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/tests/common.py b/addons/mail/tests/common.py index d4dbfb2f949..3e1dd62994d 100644 --- a/addons/mail/tests/common.py +++ b/addons/mail/tests/common.py @@ -240,7 +240,9 @@ class MockEmail(common.BaseCase): if content: self.assertIn(content, sent_mail.body_html) for fname, fvalue in (fields_values or {}).items(): - self.assertEqual(sent_mail[fname], fvalue) + self.assertEqual( + sent_mail[fname], fvalue, + 'Mail: expected %s for %s, got %s' % (fvalue, fname, sent_mail[fname])) def assertNoMail(self, author, recipients, mail_message): try: |
