Commit f856d6ac authored by Łukasz Nowak's avatar Łukasz Nowak

Setup credential related system preference.

Vifib uses erp5_credential and have to be configured.
parent 75667df8
...@@ -183,6 +183,11 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -183,6 +183,11 @@ class testVifibMixin(ERP5TypeTestCase):
"""Configures and enables default system preference""" """Configures and enables default system preference"""
default_system_preference = self.portal.portal_preferences\ default_system_preference = self.portal.portal_preferences\
.restrictedTraverse(self.getDefaultSitePreferenceId()) .restrictedTraverse(self.getDefaultSitePreferenceId())
default_system_preference.edit(
preferred_credential_recovery_automatic_approval=1,
preferred_credential_request_automatic_approval=1,
preferred_subscription_assignment_category=['function/customer'],
)
if default_system_preference.getPreferenceState() == 'disabled': if default_system_preference.getPreferenceState() == 'disabled':
default_system_preference.enable() default_system_preference.enable()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment