From d1686d050e6f6ceb485d921eb00694866e50fea1 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 9 Dec 2014 14:58:11 +0100 Subject: [PATCH] Travis : try to fix incompatibility with 'mail_environment'; --- auth_generate_password/tests/tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/auth_generate_password/tests/tests.py b/auth_generate_password/tests/tests.py index 6a3b67934..3a6df8482 100644 --- a/auth_generate_password/tests/tests.py +++ b/auth_generate_password/tests/tests.py @@ -20,6 +20,7 @@ # ############################################################################## +# import threading from openerp.tests.common import TransactionCase @@ -44,6 +45,10 @@ class TestAuthGeneratePassword(TransactionCase): cr, uid = self.cr, self.uid ru_ids = [self.demo_ru_id, self.extra_ru_id] mm_qty_before = len(self.mm_obj.search(cr, uid, [])) +# threading.currentThread().testing = True + self.ims_obj = self.registry('ir.mail_server') + ims_ids = self.ims_obj.search(cr, uid, []) + self.ims_obj.unlink(cr, uid, ims_ids) self.ru_obj.generate_password(cr, uid, ru_ids) mm_qty_after = len(self.mm_obj.search(cr, uid, []))