From e3b187b68d721196909a14df267cc62980746f66 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Fri, 25 Jun 2010 20:44:50 +0200 Subject: [PATCH] Changed test layer, runs now with plone 4. --- src/collective/classification/tests/base.py | 2 +- src/collective/classification/tests/layer.py | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/collective/classification/tests/base.py b/src/collective/classification/tests/base.py index b06620d..ee4deba 100644 --- a/src/collective/classification/tests/base.py +++ b/src/collective/classification/tests/base.py @@ -3,7 +3,7 @@ from collective.classification.tests.layer import ClassificationLayer -PloneTestCase.setupPloneSite() +PloneTestCase.setupPloneSite(extension_profiles=['collective.classification:default']) class ClassificationTestCase(PloneTestCase.PloneTestCase): diff --git a/src/collective/classification/tests/layer.py b/src/collective/classification/tests/layer.py index b43a92d..e5008ad 100644 --- a/src/collective/classification/tests/layer.py +++ b/src/collective/classification/tests/layer.py @@ -1,8 +1,5 @@ -from transaction import commit from Products.Five import zcml from Products.Five import fiveconfigure -from Testing.ZopeTestCase import app, close, installPackage -from Products.CMFCore.utils import getToolByName from Products.PloneTestCase.layer import PloneSite from collective.classification.data import downloader @@ -15,16 +12,6 @@ def setUp(cls): import collective.classification zcml.load_config('configure.zcml', collective.classification) fiveconfigure.debug_mode = False - installPackage('collective.classification', quiet=True) - # import the default profile - root = app() - portal = root.plone - tool = getToolByName(portal, 'portal_setup') - profile = 'profile-collective.classification:default' - tool.runAllImportStepsFromProfile(profile, purge_old=False) - # and commit the changes - commit() - close(root) downloader.downloadNLTKPenTreeBank() downloader.downloadNLTKBrownCorpus()