Commit 5b68cfb0 authored by Mame Coumba Sall's avatar Mame Coumba Sall

Change user from ERP5TypeTestCase to mame, as ERP5TypeTestCase

is already owner


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34391 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b661c6d
...@@ -99,7 +99,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -99,7 +99,7 @@ class TestBug(ERP5TypeTestCase):
def stepLoginUsualUser(self, **kw): def stepLoginUsualUser(self, **kw):
portal = self.getPortal() portal = self.getPortal()
uf = portal.acl_users uf = portal.acl_users
uf._doAddUser('ERP5TypeTestCase', '', ['Assignor','Assignee'], []) uf._doAddUser('mame', '', ['Assignor','Assignee'], [])
if not uf.getUser('dummy'): if not uf.getUser('dummy'):
uf._doAddUser('manager', '', ['Manager'], []) uf._doAddUser('manager', '', ['Manager'], [])
self.login('manager') self.login('manager')
...@@ -144,14 +144,6 @@ class TestBug(ERP5TypeTestCase): ...@@ -144,14 +144,6 @@ class TestBug(ERP5TypeTestCase):
self.login('dummy') self.login('dummy')
def changeUser(self, user_id):
"""
Change the current user to user_id
"""
user_folder = self.getPortal().acl_users
user = user_folder.getUserById(user_id).__of__(user_folder)
newSecurityManager(None, user)
def stepCreateProject(self,sequence=None, sequence_list=None, \ def stepCreateProject(self,sequence=None, sequence_list=None, \
**kw): **kw):
...@@ -585,7 +577,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -585,7 +577,7 @@ class TestBug(ERP5TypeTestCase):
verify that we can still resolve a bug with a verify that we can still resolve a bug with a
deleted bug line deleted bug line
""" """
self.login('ERP5TypeTestCase') self.login('mame')
bug_portal_type = 'Bug' bug_portal_type = 'Bug'
bug_line_portal_type = 'Bug Line' bug_line_portal_type = 'Bug Line'
module = self.portal.getDefaultModule(portal_type=bug_portal_type) module = self.portal.getDefaultModule(portal_type=bug_portal_type)
......
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