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

remove useless methods enableActivityTool and enableLightInstall

fix login and afterSetUp method signatures



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15449 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77abb820
...@@ -81,27 +81,13 @@ class TestBase(ERP5TypeTestCase): ...@@ -81,27 +81,13 @@ class TestBase(ERP5TypeTestCase):
""" """
return ('erp5_base',) return ('erp5_base',)
def login(self, quiet=0, run=run_all_test): def login(self):
uf = self.getPortal().acl_users uf = self.getPortal().acl_users
uf._doAddUser('rc', '', ['Manager'], []) uf._doAddUser('rc', '', ['Manager'], [])
user = uf.getUserById('rc').__of__(uf) user = uf.getUserById('rc').__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
def enableLightInstall(self): def afterSetUp(self):
"""
You can override this.
Return if we should do a light install (1) or not (0)
"""
return 1
def enableActivityTool(self):
"""
You can override this.
Return if we should create (1) or not (0) an activity tool.
"""
return 1
def afterSetUp(self, quiet=1, run=run_all_test):
self.login() self.login()
portal = self.getPortal() portal = self.getPortal()
self.category_tool = self.getCategoryTool() self.category_tool = self.getCategoryTool()
......
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