diff options
| author | Jérome Maes <jem@openerp.com> | 2015-08-26 14:45:53 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-09-01 21:04:33 +0200 |
| commit | f83f2d97d70cc8f4e5b9845a6138df5f5dd4d8be (patch) | |
| tree | f909dbece8110e17f3c774fa043cdb9a21349562 /addons/mail/tests/test_mail_features.py | |
| parent | 58c9530311c79a6223b95239b72381ae5d4d248b (diff) | |
[FIX] mail: disable tests
mail.channel doesn't have the normal behavior of mail.thread,
but the test are based on mail.channel (which is thus a not so good idea).
res.partner is the other model available in mail module, implementing
the correct behavior of mail.thread, but trigger AccessError. The tests
are commented from now, since TDE and I rewrite the test with a complete
module dedicated to the test and implementing the expected behavior of a mail.thread.
Diffstat (limited to 'addons/mail/tests/test_mail_features.py')
| -rw-r--r-- | addons/mail/tests/test_mail_features.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/addons/mail/tests/test_mail_features.py b/addons/mail/tests/test_mail_features.py index b59a76602b9..2766d0d7ced 100644 --- a/addons/mail/tests/test_mail_features.py +++ b/addons/mail/tests/test_mail_features.py @@ -48,13 +48,15 @@ class TestMessagePost(TestMail): self.assertEqual(self.group_pigs.message_follower_ids.mapped('partner_id'), original.mapped('partner_id')) self.assertEqual(self.group_pigs.message_follower_ids.mapped('channel_id'), original.mapped('channel_id')) - @mute_logger('openerp.addons.mail.models.mail_mail') - def test_post_subscribe_author(self): - original = self.group_pigs.message_follower_ids - self.group_pigs.sudo(self.user_employee).message_post( - body='Test Body', message_type='comment', subtype='mt_comment') - self.assertEqual(self.group_pigs.message_follower_ids.mapped('partner_id'), original.mapped('partner_id') | self.user_employee.partner_id) - self.assertEqual(self.group_pigs.message_follower_ids.mapped('channel_id'), original.mapped('channel_id')) + # TODO : the author of a message post on mail.channel should not be added as follower + + # @mute_logger('openerp.addons.mail.models.mail_mail') + # def test_post_subscribe_author(self): + # original = self.group_pigs.message_follower_ids + # self.group_pigs.sudo(self.user_employee).message_post( + # body='Test Body', message_type='comment', subtype='mt_comment') + # self.assertEqual(self.group_pigs.message_follower_ids.mapped('partner_id'), original.mapped('partner_id') | self.user_employee.partner_id) + # self.assertEqual(self.group_pigs.message_follower_ids.mapped('channel_id'), original.mapped('channel_id')) @mute_logger('openerp.addons.mail.models.mail_mail') def test_post_no_subscribe_recipients(self): |
