Skip to content

Commit

Permalink
Changed test layer, runs now with plone 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiorgis Gozadinos committed Jun 25, 2010
1 parent 34fabe6 commit e3b187b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion src/collective/classification/tests/base.py
Expand Up @@ -3,7 +3,7 @@
from collective.classification.tests.layer import ClassificationLayer


PloneTestCase.setupPloneSite()
PloneTestCase.setupPloneSite(extension_profiles=['collective.classification:default'])


class ClassificationTestCase(PloneTestCase.PloneTestCase):
Expand Down
13 changes: 0 additions & 13 deletions 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

Expand All @@ -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()

Expand Down

0 comments on commit e3b187b

Please sign in to comment.