Browse Source

[FIX] web_notify: Fix tests

pull/666/head
Pedro M. Baeza 7 years ago
parent
commit
9094d80da0
  1. 4
      web_notify/tests/test_res_users.py

4
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]))
Loading…
Cancel
Save