From 9c80b99e5e39847b6d91fd9df29cd83f3ab8a8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 25 Mar 2014 11:39:55 +0100 Subject: [PATCH] [FIX] email_template: sending an email using the send_mail method of a template is not related to openchatter anymore; therefore recipients should not be called 'followers of XX', but use their real name instead. This is already done, but the tests were not updated. bzr revid: tde@openerp.com-20140325103955-oc7ob98b1jql7tlz --- addons/email_template/tests/test_mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/email_template/tests/test_mail.py b/addons/email_template/tests/test_mail.py index b643ca8e1e1..8bc6d62017c 100644 --- a/addons/email_template/tests/test_mail.py +++ b/addons/email_template/tests/test_mail.py @@ -237,8 +237,8 @@ class test_message_compose(TestMail): email_template.send_mail(cr, uid, email_template_id, self.group_pigs_id, force_send=True, context=context) sent_emails = self._build_email_kwargs_list email_to_lst = [ - ['b@b.b', 'c@c.c'], ['"Followers of Pigs" '], - ['"Followers of Pigs" '], ['"Followers of Pigs" ']] + ['b@b.b', 'c@c.c'], ['Administrator '], + ['Raoul Grosbedon '], ['Bert Tartignole ']] self.assertEqual(len(sent_emails), 4, 'email_template: send_mail: 3 valid email recipients + email_to -> should send 4 emails') for email in sent_emails: self.assertIn(email['email_to'], email_to_lst, 'email_template: send_mail: wrong email_recipients')