utm/tests/test_routes.py

16 lines
569 B
Python
Raw Normal View History

2024-05-03 15:31:11 +03:00
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import odoo.tests
from odoo.addons.base.tests.common import HttpCaseWithUserDemo
@odoo.tests.tagged('post_install', '-at_install')
class TestRoutes(HttpCaseWithUserDemo):
def test_01_web_session_destroy(self):
base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
self.authenticate('demo', 'demo')
res = self.opener.post(url=base_url + '/web/session/destroy', json={})
self.assertEqual(res.status_code, 200)