source: products/Plone4ArtistsAudioPatch/trunk/extralibs/p4a.audiopatch/p4a/audiopatch/tests/ploneintegration.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 19 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1from Testing import ZopeTestCase
2from Products.PloneTestCase import PloneTestCase
3
4DEPENDENCIES = ['Archetypes']
5PRODUCT_DEPENDENCIES = ['MimetypesRegistry', 'PortalTransforms',
6                        'basesyndication', 'fatsyndication']
7
8# Install all (product-) dependencies, install them too
9for dependency in PRODUCT_DEPENDENCIES + DEPENDENCIES:
10    ZopeTestCase.installProduct(dependency)
11
12PRODUCTS = list(DEPENDENCIES)
13
14PloneTestCase.setupPloneSite(products=PRODUCTS)
15
16from Products.Five import zcml
17import p4a.common
18import p4a.audio
19import p4a.fileimage
20import p4a.audiopatch
21
22def testclass_builder(**kwargs):   
23    class PloneIntegrationTestCase(PloneTestCase.PloneTestCase):
24        """Base integration TestCase for p4a.audio."""
25   
26        def _setup(self):
27            PloneTestCase.PloneTestCase._setup(self)
28            zcml.load_config('configure.zcml', p4a.common)
29            zcml.load_config('configure.zcml', p4a.audio)
30            zcml.load_config('configure.zcml', p4a.fileimage)
31            zcml.load_config('configure.zcml', p4a.audiopatch)
32
33    for key, value in kwargs.items():
34        setattr(PloneIntegrationTestCase, key, value)
35    return PloneIntegrationTestCase
Note: See TracBrowser for help on using the repository browser.