bus/tests/test_health.py
Старков Евгений Федорович 29dc5ead8e odoo replaced to talisman
2024-05-21 15:09:16 +03:00

13 lines
431 B
Python

# Part of Talisman . 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'))