From 590c4cf4edf1aad08b8bfe302928b7c87f4cf6c7 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 8 Nov 2012 15:03:16 +0100 Subject: [PATCH] [FIX] mail: the test contain a get id for the expandable messages. The expandable messages don't have id. Message_read sort the message, we don't need id for expandables bzr revid: chm@openerp.com-20121108140316-ffei9whh0k1r1uxt --- addons/mail/tests/test_mail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mail/tests/test_mail.py b/addons/mail/tests/test_mail.py index 2c52e1bf205..0aa1922772d 100644 --- a/addons/mail/tests/test_mail.py +++ b/addons/mail/tests/test_mail.py @@ -622,7 +622,7 @@ class test_mail(TestMailMockups): # Data: get expandables new_threads_exp, new_msg_exp = None, None for msg in read_msg_list: - if msg.get('type') == 'expandable' and msg.get('nb_messages') == -1 and msg.get('id') == -1: + if msg.get('type') == 'expandable' and msg.get('nb_messages') == -1 and msg.get('max_limit'): new_threads_exp = msg elif msg.get('type') == 'expandable': new_msg_exp = msg @@ -667,7 +667,7 @@ class test_mail(TestMailMockups): # Data: get expandables new_threads_exp, new_msg_exp = None, None for msg in read_msg_list: - if msg.get('type') == 'expandable' and msg.get('nb_messages') == -1 and msg.get('id') == -1: + if msg.get('type') == 'expandable' and msg.get('nb_messages') == -1 and msg.get('max_limit'): new_threads_exp = msg elif msg.get('type') == 'expandable': new_msg_exp = msg @@ -714,7 +714,7 @@ class test_mail(TestMailMockups): # Data: get expandables new_threads_exp, new_msg_exp = None, None for msg in read_msg_list: - if msg.get('type') == 'expandable' and msg.get('nb_messages') == -1 and msg.get('id') == -1: + if msg.get('type') == 'expandable' and msg.get('nb_messages') == -1 and msg.get('max_limit'): new_threads_exp = msg # Do: fetch new messages, domain from expandable