mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] tests
This commit is contained in:
@@ -21,7 +21,6 @@ class TestSupportBranding(TransactionCase):
|
||||
)
|
||||
|
||||
def test_fetch_support_branding_vals_from_res_company(self):
|
||||
|
||||
# Check if user has the right access rights e.g. portal user not allowed
|
||||
with self.assertRaises(AccessError):
|
||||
self.ir_config_obj.with_user(self.portal_user).get_param(
|
||||
@@ -35,6 +34,13 @@ class TestSupportBranding(TransactionCase):
|
||||
self.demo_support_branding_company_name.key
|
||||
)
|
||||
|
||||
# Check if user has the right access rights e.g. portal user not allowed
|
||||
# by calling 'get_support_branding_config_param_data'
|
||||
with self.assertRaises(AccessError):
|
||||
self.company_obj.with_user(
|
||||
self.portal_user
|
||||
).get_support_branding_config_param_data()
|
||||
|
||||
vals = self.company_obj.with_user(
|
||||
self.demo_user
|
||||
).get_support_branding_config_param_data()
|
||||
|
||||
Reference in New Issue
Block a user