Commit 959a0027 authored by Łukasz Nowak's avatar Łukasz Nowak

Preferences are setup by Business Template.

parent 4925197a
...@@ -189,19 +189,6 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -189,19 +189,6 @@ class testVifibMixin(ERP5TypeTestCase):
""" """
return "vifib_default_system_preference" return "vifib_default_system_preference"
def setSystemPreference(self):
"""Configures and enables default system preference"""
default_system_preference = self.portal.portal_preferences\
.restrictedTraverse(self.getDefaultSitePreferenceId())
default_system_preference.edit(
preferred_credential_recovery_automatic_approval=1,
preferred_credential_request_automatic_approval=1,
preferred_person_credential_update_automatic_approval=1,
preferred_subscription_assignment_category=['role/member'],
)
if default_system_preference.getPreferenceState() == 'disabled':
default_system_preference.enable()
def setupNotificationModule(self): def setupNotificationModule(self):
module = self.portal.notification_message_module module = self.portal.notification_message_module
isTransitionPossible = self.portal.portal_workflow.isTransitionPossible isTransitionPossible = self.portal.portal_workflow.isTransitionPossible
...@@ -320,7 +307,6 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -320,7 +307,6 @@ class testVifibMixin(ERP5TypeTestCase):
self.setupVifibMachineAuthenticationPlugin() self.setupVifibMachineAuthenticationPlugin()
self.setupVifibShadowAuthenticationPlugin() self.setupVifibShadowAuthenticationPlugin()
self.setPreference() self.setPreference()
self.setSystemPreference()
self.setupNotificationModule() self.setupNotificationModule()
self.prepareTestUsers() self.prepareTestUsers()
self.prepareVifibAccountingPeriod() self.prepareVifibAccountingPeriod()
......
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