From 81db3f39976c84399629dca94db369d178448293 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 16 Nov 2012 14:08:34 +0100 Subject: [PATCH] [IMP] mail: commented test for res_model on attachment because one2many became many2many bzr revid: chm@openerp.com-20121116130834-hsu7wunja092ayt9 --- addons/mail/tests/test_mail.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/mail/tests/test_mail.py b/addons/mail/tests/test_mail.py index 02b55cef9f7..a48935ceed6 100644 --- a/addons/mail/tests/test_mail.py +++ b/addons/mail/tests/test_mail.py @@ -506,10 +506,11 @@ class test_mail(test_mail_mockup.TestMailMockups): self.assertEqual(compose.parent_id and compose.parent_id.id, message.id, 'mail.message parent_id incorrect') # Test: mail.message: attachments for attach in compose.attachment_ids: - self.assertEqual(attach.res_model, 'mail.group', 'mail.message attachment res_model incorrect') - self.assertEqual(attach.res_id, self.group_pigs_id, 'mail.message attachment res_id incorrect') + # this test is commented: the field one2many became many2many + # self.assertEqual(attach.res_model, 'mail.group', 'mail.message attachment res_model incorrect') + # self.assertEqual(attach.res_id, self.group_pigs_id, 'mail.message attachment res_id incorrect') self.assertIn((attach.datas_fname, attach.datas.decode('base64')), _attachments_test, 'mail.message attachment name / data incorrect') - + # ---------------------------------------- # CASE3: mass_mail on Pigs and Bird # ----------------------------------------