-
- Downloads
[FIX] mass_mailing_sms: try to render jinja content when using test wizards
# Purpose
The wizard to test a mailing does not compute the jinja part. It does
not detect syntax errors that would make cron crash
# Specifications
If there is at least one record in the mailing model then render template
completely. Thow an error if rendering cannot be done.
The downside is that we cannot test the jinja part if there is not yet any
record in the mailing's model.
Do it for mass_mailing and mass_mailing_sms.
Add tests to ensure error detection in test wizard effectively works.
Task ID-2312442
PR #55696
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
No related branches found
No related tags found
Showing
- addons/mass_mailing/wizard/mailing_mailing_test.py 17 additions, 5 deletionsaddons/mass_mailing/wizard/mailing_mailing_test.py
- addons/mass_mailing_sms/wizard/mailing_sms_test.py 8 additions, 1 deletionaddons/mass_mailing_sms/wizard/mailing_sms_test.py
- addons/test_mail_full/tests/test_mass_sms.py 30 additions, 0 deletionsaddons/test_mail_full/tests/test_mass_sms.py
- addons/test_mass_mailing/tests/test_mailing_internals.py 41 additions, 0 deletionsaddons/test_mass_mailing/tests/test_mailing_internals.py
Loading
Please register or sign in to comment