mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] Adding res.users chatter_position read/write test
This commit is contained in:
committed by
Sergey Shebanin
parent
d2a1b8e79f
commit
407d61739d
15
web_responsive/tests/test_res_users.py
Normal file
15
web_responsive/tests/test_res_users.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copyright 2018 Alexandre Díaz
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo.tests import common
|
||||
|
||||
class TestResUsers(common.TransactionCase):
|
||||
|
||||
def test_chatter_position_wr(self):
|
||||
user_public = self.env.ref('base.public_user')
|
||||
|
||||
self.assertEqual(user_public.chatter_position, 'normal')
|
||||
user_public.sudo(user_public).write({
|
||||
'chatter_position': 'sided',
|
||||
})
|
||||
self.assertEqual(user_public.chatter_position, 'sided')
|
||||
Reference in New Issue
Block a user