* = bus, calendar, crm_livechat, hr, hr_holidays, im_livechat, mail_bot,
mass_mailing, privacy_lookup, test_discuss_full, test_mail,
test_mail_full, website_crm_livechat, website_livechat, base
In preparation of splitting discuss and mail modules.
Part of task-3265211
closes odoo/odoo#118354
Related: odoo/upgrade#4553
Related: odoo/enterprise#39661
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
14 lines
450 B
Python
14 lines
450 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.tests import common
|
|
|
|
|
|
class TestIrWebsocket(common.HttpCase):
|
|
def test_only_allow_string_channels_from_frontend(self):
|
|
with self.assertRaises(ValueError):
|
|
self.env['ir.websocket']._subscribe({
|
|
'inactivity_period': 1000,
|
|
'last': 0,
|
|
'channels': [('odoo', 'discuss.channel', 5)],
|
|
})
|