Back to index

plone3  3.1.7
kss_and_plone_layer.py
Go to the documentation of this file.
00001 from Products.PloneTestCase.layer import PloneSite
00002 from Products.PloneTestCase import PloneTestCase as ptc
00003 from kss.core.tests.base import KSSViewTestCaseMixin
00004 import plone.app.kss.tests, kss.core.tests
00005 from Products.Five.zcml import load_config
00006 
00007 class KSSAndPloneLayer(PloneSite):
00008     '''Since Plone sets up all zcml needed for kss, we only
00009     need to set up the additional registration needed for
00010     some tests, and for the command request introspection.
00011     '''
00012     @classmethod
00013     def setUp(cls):
00014         load_config('configure-unittest.zcml', package=kss.core.tests)
00015         load_config('configure-part_reloading.zcml',
00016                     package=plone.app.kss.tests)
00017 
00018     @classmethod
00019     def tearDown(cls):
00020         # XXX: tear down whatever was set up in configure-part_reloading
00021         # XXX XXX - How? (RB)
00022         pass
00023        
00024 class KSSAndPloneTestCase(ptc.PloneTestCase, KSSViewTestCaseMixin):
00025     layer = KSSAndPloneLayer