diff --git a/product/ERP5OOo/tests/testIngestion.py b/product/ERP5OOo/tests/testIngestion.py index 9afb7ea102bd3eecb3a009248b1b32d73c1eb608..38df5ddf526d8296c29c7043633cb0a0d5025f45 100644 --- a/product/ERP5OOo/tests/testIngestion.py +++ b/product/ERP5OOo/tests/testIngestion.py @@ -109,7 +109,6 @@ class TestIngestion(ERP5TypeTestCase): self.setSystemPreference() self.setSimulatedNotificationScript() self.setTools() - self.setContentTypeRegistry() def beforeTearDown(self): self.portal.portal_caches.clearAllCache() @@ -142,16 +141,6 @@ class TestIngestion(ERP5TypeTestCase): if getattr(self.portal, 'portal_transforms', None) is None: self.portal.manage_addProduct['PortalTransforms'].manage_addTool(type='Portal Transforms') - def setContentTypeRegistry(self): - content_type_registry = self.portal.content_type_registry - predicate_id = 'Ingested Document' - if predicate_id not in content_type_registry.predicate_ids: - content_type_registry.addPredicate(predicate_id, 'extension') - content_type_registry.predicates[predicate_id][0].edit('emx') - content_type_registry.assignTypeName(predicate_id, - 'Document Ingestion Message') - content_type_registry.reorderPredicate(predicate_id, 0) - ################################## ## Useful methods ##################################