Odoo18-Base/addons/bus/tests/test_health.py
2025-01-06 10:57:38 +07:00

13 lines
425 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests import HttpCase
class TestBusController(HttpCase):
def test_health(self):
response = self.url_open('/websocket/health')
self.assertEqual(response.status_code, 200)
payload = response.json()
self.assertEqual(payload['status'], 'pass')
self.assertFalse(response.cookies.get('session_id'))