Commit b69fde93 authored by Jérome Perrin's avatar Jérome Perrin

don't tests reports with Manager role


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23162 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd8a1e0e
...@@ -52,6 +52,13 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -52,6 +52,13 @@ class TestTradeReports(ERP5ReportTestCase):
user = uf.getUserById('manager').__of__(uf) user = uf.getUserById('manager').__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
def loginAsUser(self):
"""login as user, without Manager role"""
uf = self.getPortal().acl_users
uf._doAddUser('user', 'user', ['Assignee', 'Assignor',
'Associate', 'Auditor', 'Author'], [])
user = uf.getUserById('manager').__of__(uf)
newSecurityManager(None, user)
def afterSetUp(self): def afterSetUp(self):
"""Setup the fixture. """Setup the fixture.
...@@ -145,6 +152,7 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -145,6 +152,7 @@ class TestTradeReports(ERP5ReportTestCase):
# and all this available to catalog # and all this available to catalog
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
self.loginAsUser()
def beforeTearDown(self): def beforeTearDown(self):
"""Remove all documents. """Remove all documents.
......
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