3
0
Fork 0

[FIX] tests

14.0
KKamaa 2023-02-09 01:40:14 +03:00
parent 956d67fca8
commit 179a190e09
1 changed files with 7 additions and 1 deletions

View File

@ -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()