Commit a3ee19c3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

update to add category list in portal_preferences. This change is to follow...

update to add category list in portal_preferences. This change is to follow the changes in erp5_credential
parent d4b18610
......@@ -244,12 +244,11 @@ class TestERP5Credential(ERP5TypeTestCase):
self.logout()
def stepSetCredentialAssignmentPropertyList(self, sequence={}):
role_list = sequence.get("role_list", ["internal",])
function_list = sequence.get("function_list", ["member",])
category_list = sequence.get("category_list",
["role/internal", "function/member"])
self.login()
preference = self._getPreference()
preference.edit(preferred_credential_assignment_role_list=role_list,
preferred_credential_assignment_function_list=function_list)
preference.edit(preferred_subscription_assignment_category_list=category_list)
self._enablePreference()
self.stepTic()
self.logout()
......@@ -861,8 +860,8 @@ class TestERP5Credential(ERP5TypeTestCase):
assignment_function="member",
assignment_role="internal")
self.stepCheckAssignmentAfterActiveLogin(sequence)
self.stepSetCredentialAssignmentPropertyList(dict(role_list=["client",],
function_list=["agent",]))
category_list = ["role/client", "function/agent"]
self.stepSetCredentialAssignmentPropertyList(dict(category_list=category_list))
self._createCredentialRequest(reference="credential_user")
sequence = dict(reference="credential_user",
assignment_function="agent",
......
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