[Erp5-report] r41489 nicolas.dumazet - /erp5/trunk/products/ERP5/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 16 10:48:32 CET 2010
Author: nicolas.dumazet
Date: Thu Dec 16 10:48:31 2010
New Revision: 41489
URL: http://svn.erp5.org?rev=41489&view=rev
Log:
setting up mime_type categories does not look like a requirement.
Modified:
erp5/trunk/products/ERP5/tests/testContributionRegistryTool.py
Modified: erp5/trunk/products/ERP5/tests/testContributionRegistryTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testContributionRegistryTool.py?rev=41489&r1=41488&r2=41489&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testContributionRegistryTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testContributionRegistryTool.py [utf8] Thu Dec 16 10:48:31 2010
@@ -43,7 +43,6 @@ class TestContributionRegistryTool(ERP5T
def afterSetUp(self):
self.setUpTestScript()
- self.setUpMimeType()
self.setUpPredicate()
def setUpTestScript(self):
@@ -74,24 +73,6 @@ return predicate.getDestinationPortalTyp
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
More information about the Erp5-report
mailing list