bus/tests/test_ir_websocket.py

14 lines
456 B
Python
Raw Normal View History

2024-05-21 15:09:16 +03:00
# Part of Talisman . See LICENSE file for full copyright and licensing details.
2024-05-03 15:03:07 +03:00
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)],
})