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): ...@@ -244,12 +244,11 @@ class TestERP5Credential(ERP5TypeTestCase):
self.logout() self.logout()
def stepSetCredentialAssignmentPropertyList(self, sequence={}): def stepSetCredentialAssignmentPropertyList(self, sequence={}):
role_list = sequence.get("role_list", ["internal",]) category_list = sequence.get("category_list",
function_list = sequence.get("function_list", ["member",]) ["role/internal", "function/member"])
self.login() self.login()
preference = self._getPreference() preference = self._getPreference()
preference.edit(preferred_credential_assignment_role_list=role_list, preference.edit(preferred_subscription_assignment_category_list=category_list)
preferred_credential_assignment_function_list=function_list)
self._enablePreference() self._enablePreference()
self.stepTic() self.stepTic()
self.logout() self.logout()
...@@ -861,8 +860,8 @@ class TestERP5Credential(ERP5TypeTestCase): ...@@ -861,8 +860,8 @@ class TestERP5Credential(ERP5TypeTestCase):
assignment_function="member", assignment_function="member",
assignment_role="internal") assignment_role="internal")
self.stepCheckAssignmentAfterActiveLogin(sequence) self.stepCheckAssignmentAfterActiveLogin(sequence)
self.stepSetCredentialAssignmentPropertyList(dict(role_list=["client",], category_list = ["role/client", "function/agent"]
function_list=["agent",])) self.stepSetCredentialAssignmentPropertyList(dict(category_list=category_list))
self._createCredentialRequest(reference="credential_user") self._createCredentialRequest(reference="credential_user")
sequence = dict(reference="credential_user", sequence = dict(reference="credential_user",
assignment_function="agent", 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