Before this commit launch a server with --db-filter that match at least 2 dbs name Try to authenticate You will have an error request is unbound when you try to access request.env Now we retrieve the user from self instead of the request. New test to ensure rpc authentication is tested. Related to commit 245ef4b1 closes odoo/odoo#38969 X-original-commit: 4b3400c430bec7539aada0619fd203978daca2d8 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
10 lines
239 B
Python
10 lines
239 B
Python
import odoo.tests
|
|
from odoo.tools import mute_logger
|
|
|
|
|
|
@odoo.tests.common.tagged('post_install', '-at_install')
|
|
class TestWebsiteSession(odoo.tests.HttpCase):
|
|
|
|
def test_01_run_test(self):
|
|
self.start_tour('/', 'test_json_auth')
|