from Products.Five import zcml
from Products.Five import fiveconfigure
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
from Testing import ZopeTestCase as ztc
from Products.ZWiki.testsupport import ZopeTestCase, afterSetUp
# ZopeTestCase.installProduct('ZWiki')
import Products.ZWiki
PRODUCTS = ['Zwiki']
#Set up the Plone site used for the test fixture.
@onsetup
def setup_migration():
fiveconfigure.debug_mode = True
#Load the zcml for the packages you are working with.
#If you are not able to create an instance of your type, you may have skipped this step.
# zcml.load_config('configure.zcml', oldpackage)
# zcml.load_config('configure.zcml', newpackage)
zcml.load_site()
fiveconfigure.debug_mode = False
ZopeTestCase.installProduct('ZWiki')
# ztc.installPackage('newpackage')
#Run the setup function
setup_migration()
ptc.setupPloneSite(products=PRODUCTS)
class MigrationTestCase(ptc.PloneTestCase):
"""Base class for your migration tests"""
pass