Commit c43d6452 authored by Nicolas Dumazet's avatar Nicolas Dumazet

setting up mime_type categories does not look like a requirement.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41489 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2d033d7
No related merge requests found
......@@ -43,7 +43,6 @@ class TestContributionRegistryTool(ERP5TypeTestCase):
def afterSetUp(self):
self.setUpTestScript()
self.setUpMimeType()
self.setUpPredicate()
def setUpTestScript(self):
......@@ -74,24 +73,6 @@ return predicate.getDestinationPortalType()
transaction.commit()
self.tic()
def setUpMimeType(self):
portal_categories = self.portal.portal_categories
if getattr(portal_categories, 'mime_type', None) is None:
mime_type = portal_categories.newContent(portal_type='Base Category',
id='mime_type')
text = mime_type.newContent(portal_type='Category', id='text')
text.newContent(portal_type='Category', id='html')
transaction.commit()
self.tic()
if getattr(portal_categories, 'mime_type', None) is None:
mime_type = portal_categories.newContent(portal_type='Base Category',
id='mime_type')
message = mime_type.newContent(portal_type='Category', id='message')
message.newContent(portal_type='Category', id='rfc822')
transaction.commit()
self.tic()
def setUpPredicate(self):
portal_contribution_registry = self.portal.portal_contribution_registry
......
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