Commit 29e4ad3d authored by Vincent Pelletier's avatar Vincent Pelletier

tests: Make role_category_list argument actually a list

The setter does this already so no change is expected, but these are API
misuses and they just look wrong.
parent 3daa9340
...@@ -1881,7 +1881,7 @@ class TestCRMMailSend(BaseTestCRM): ...@@ -1881,7 +1881,7 @@ class TestCRMMailSend(BaseTestCRM):
portal_type_object.newContent(id='manager_role', portal_type_object.newContent(id='manager_role',
portal_type='Role Information', portal_type='Role Information',
role_name_list=('Manager',), role_name_list=('Manager',),
role_category_list='function/crm_agent') role_category_list=('function/crm_agent', ))
portal_type_object.updateRoleMapping() portal_type_object.updateRoleMapping()
user = self.createSimpleUser('Agent', 'crm_agent', 'crm_agent') user = self.createSimpleUser('Agent', 'crm_agent', 'crm_agent')
self.tic() self.tic()
......
...@@ -115,7 +115,7 @@ CREATE TABLE alternate_roles_and_users ( ...@@ -115,7 +115,7 @@ CREATE TABLE alternate_roles_and_users (
self.portal.portal_types.Person.newContent( self.portal.portal_types.Person.newContent(
portal_type='Role Information', portal_type='Role Information',
role_name='Unknown', role_name='Unknown',
role_category_list=('group/g1'), role_category_list=('group/g1', ),
role_base_category='group', role_base_category='group',
local_role_group_value=self.portal.portal_categories.local_role_group.Alternate) local_role_group_value=self.portal.portal_categories.local_role_group.Alternate)
......
...@@ -166,8 +166,9 @@ class UserManagementTestCase(ERP5TypeTestCase): ...@@ -166,8 +166,9 @@ class UserManagementTestCase(ERP5TypeTestCase):
) )
dummy_type.newContent( dummy_type.newContent(
portal_type='Role Information', portal_type='Role Information',
role_category_list=self.portal.portal_categories.\ role_category_list=(
group.dummy_group.getRelativeUrl(), self.portal.portal_categories.group.dummy_group.getRelativeUrl(),
),
role_name_list=('Assignee', ) role_name_list=('Assignee', )
) )
if 'Dummy Module' not in types_tool.objectIds(): if 'Dummy Module' not in types_tool.objectIds():
......
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