Commit 210166d1 authored by Ivan Tyagov's avatar Ivan Tyagov

portal_contributions tool is part of erp5_dms bt5. No need to create it manually.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14443 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7cfe7207
...@@ -121,22 +121,15 @@ class TestIngestion(ERP5TypeTestCase): ...@@ -121,22 +121,15 @@ class TestIngestion(ERP5TypeTestCase):
def createTools(self): def createTools(self):
""" """
Set up contribution tool and content type registry Set up missing portal_mailin tool.
NOTE: portal_contributions is not created yet
by ERP5Site bootstrap. This is why me must create it
here. We also delete it and recreate it in case
it was saved by a previous --save run of the test.
XXX - what about mimetype registry ?
""" """
# Delete and create portal_contributions # Delete and create portal_contributions
try: #try:
self.portal._delObject('portal_contributions') # self.portal._delObject('portal_contributions')
except AttributeError: #except AttributeError:
pass # pass
addTool = self.portal.manage_addProduct['ERP5'].manage_addTool #addTool = self.portal.manage_addProduct['ERP5'].manage_addTool
addTool('ERP5 Contribution Tool', None) #addTool('ERP5 Contribution Tool', None)
# Delete and create portal_mailin # Delete and create portal_mailin
try: try:
self.portal._delObject('portal_mailin') self.portal._delObject('portal_mailin')
......
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