From 9094d80da0109a33ed212ccd2f69d922a11d3a86 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 29 Jul 2017 13:49:58 +0200 Subject: [PATCH] [FIX] web_notify: Fix tests --- web_notify/tests/test_res_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_notify/tests/test_res_users.py b/web_notify/tests/test_res_users.py index f6751fed..d32bc71b 100644 --- a/web_notify/tests/test_res_users.py +++ b/web_notify/tests/test_res_users.py @@ -44,8 +44,8 @@ class TestResUsers(common.TransactionCase): # a single call to the bus with mock.patch('openerp.addons.bus.models.bus.ImBus.sendmany' ) as mockedSendMany: - users = self.env.user.search([(1, "=", 1)]) + users = self.env.user.search([]) self.assertTrue(len(users) > 1) users.notify_warning('message') self.assertEqual(1, mockedSendMany.call_count) - self.assertEqual(len(users), len(mockedSendMany.call_args)) + self.assertEqual(len(users), len(mockedSendMany.call_args[0][0]))