Skip to content

Commit

Permalink
Merge pull request #22 from plone/tomgross-noptc
Browse files Browse the repository at this point in the history
Ported to plone.app.testing
  • Loading branch information
tisto committed Jan 6, 2015
2 parents 0c8c875 + d1ce53e commit d484e8d
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 2,220 deletions.
7 changes: 6 additions & 1 deletion CHANGES.rst
@@ -1,7 +1,7 @@
Changelog
=========

1.3.9 (unreleased)
2.0 (unreleased)
------------------

- Add upgrade step for the security control panel.
Expand All @@ -13,6 +13,11 @@ Changelog
- Add upgrade steps for markup control panel.
[thet]

- Ported tests to plone.app.testing
[tomgross]

- Removed all tests for migrations older than 4.3 -> 5.0
[tomgross]

1.3.8 (2014-11-01)
------------------
Expand Down
20 changes: 2 additions & 18 deletions plone/app/upgrade/tests/base.py
Expand Up @@ -9,19 +9,14 @@
import transaction
from zope.site.hooks import setSite

from Testing.ZopeTestCase.sandbox import Sandboxed
from Products.PloneTestCase.layer import PloneSiteLayer
from Products.PloneTestCase.ptc import PloneTestCase
from Products.PloneTestCase.ptc import setupPloneSite
from plone.app.testing.bbb import PloneTestCase

from Products.CMFCore.interfaces import IActionCategory
from Products.CMFCore.interfaces import IActionInfo
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.tests.base.testcase import WarningInterceptor
from Products.GenericSetup.context import TarballImportContext

setupPloneSite()


class MigrationTest(PloneTestCase):

Expand Down Expand Up @@ -111,21 +106,10 @@ def removeSkinLayer(self, layer, skin='Plone Default'):
skins.addSkinSelection(skin, ','.join(path))


class FunctionalUpgradeLayer(PloneSiteLayer):

@classmethod
def setUp(cls):
pass

@classmethod
def tearDown(cls):
pass


class FunctionalUpgradeTestCase(Sandboxed, PloneTestCase, WarningInterceptor):
class FunctionalUpgradeTestCase(PloneTestCase, WarningInterceptor):

_setup_fixture = 0
layer = FunctionalUpgradeLayer
site_id = 'test'

def afterSetUp(self):
Expand Down
124 changes: 0 additions & 124 deletions plone/app/upgrade/v25/tests.py

This file was deleted.

0 comments on commit d484e8d

Please sign in to comment.