[FIX] mail: test utils: mock is_odoo_focused

In the mocked version of the longpolling bus used in tests, the
is_odoo_focused function should be defined to prevent crashes when
we simulate incoming messages.
This commit is contained in:
Aaron Bohy
2018-06-21 13:55:10 +02:00
parent cf3cc98f1c
commit ffe9bb501b
@@ -37,6 +37,9 @@ function createBusService(bus) {
* Do nothing
*/
start_polling: function () {},
is_odoo_focused: function () {
return true;
},
});
},