From ed2ef23657b5c9e158a5f466d1422981c54f541c Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Wed, 12 Feb 2025 17:08:08 +0100 Subject: [PATCH] [FIX] mail_debrand: ensure footer is rendered in test See https://github.com/odoo/odoo/commit/9f65f1a Fixes ``` 2025-02-12 16:01:58,174 254 ERROR odoo odoo.addons.mail_debrand.tests.test_mail_debrand: FAIL: TestMailDebrand.test_default_debrand Traceback (most recent call last): File "/__w/mail/mail/mail_debrand/tests/test_mail_debrand.py", line 52, in test_default_debrand self._test_debrand_by_lang( File "/__w/mail/mail/mail_debrand/tests/test_mail_debrand.py", line 47, in _test_debrand_by_lang self.assertIn(term, body) AssertionError: 'Powered by' not found in Markup('\n\n\n ... ``` --- mail_debrand/tests/test_mail_debrand.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mail_debrand/tests/test_mail_debrand.py b/mail_debrand/tests/test_mail_debrand.py index e5a11117..0e0ab8c6 100644 --- a/mail_debrand/tests/test_mail_debrand.py +++ b/mail_debrand/tests/test_mail_debrand.py @@ -40,6 +40,7 @@ def _test_debrand_by_lang(self, template_ref, lang, term): { "message": self.mail, "company": self.env.company, + "email_notification_force_footer": True, }, lang=lang.code, minimal_qcontext=True,