mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 04:32:07 +02:00
vanilla 18.0
This commit is contained in:
parent
0a7ae8db93
commit
5454004ff9
1963 changed files with 1187893 additions and 919508 deletions
|
|
@ -1,7 +1,8 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import http
|
||||
from odoo.tests.common import get_db_name, HOST, HttpCase, new_test_user, Opener
|
||||
from odoo.addons.base.tests.common import HttpCaseWithUserDemo
|
||||
from odoo.tests.common import get_db_name, HOST, HttpCase, new_test_user, Opener, tagged
|
||||
|
||||
|
||||
class TestWebLoginCommon(HttpCase):
|
||||
|
|
@ -40,7 +41,7 @@ class TestWebLogin(TestWebLoginCommon):
|
|||
data='{}'
|
||||
).raise_for_status()
|
||||
# ensure we end up on the right page for internal users.
|
||||
self.assertEqual(res_post.request.path_url, '/web')
|
||||
self.assertEqual(res_post.request.path_url, '/odoo')
|
||||
|
||||
def test_web_login_external(self):
|
||||
res_post = self.login('portal_user', 'portal_user')
|
||||
|
|
@ -58,3 +59,9 @@ class TestWebLogin(TestWebLoginCommon):
|
|||
|
||||
# log in using the above form, it should still be valid
|
||||
self.login('internal_user', 'internal_user', csrf_token)
|
||||
|
||||
|
||||
@tagged('post_install', '-at_install')
|
||||
class TestUserSwitch(HttpCaseWithUserDemo):
|
||||
def test_user_switch(self):
|
||||
self.start_tour('/odoo', 'test_user_switch', login='demo')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue