[FIX] test depends on demo data, demo data changed, test borken. Fix test. Tests depending on demo data suck.
bzr revid: xmo@openerp.com-20140109091946-s77bgymh3pmzkyh3
This commit is contained in:
@@ -237,7 +237,7 @@ 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" <admin@example.com>'],
|
||||
['b@b.b', 'c@c.c'], ['"Followers of Pigs" <admin@yourcompany.example.com>'],
|
||||
['"Followers of Pigs" <raoul@raoul.fr>'], ['"Followers of Pigs" <bert@bert.fr>']]
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user