source: products/quintagroup.ploneformgen.readonlystringfield/trunk/quintagroup/ploneformgen/readonlystringfield/tests/base.py

Last change on this file was 835, checked in by mylan, 17 years ago

validate_qploneskindump_form.vpy typo fixed

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1from Testing import ZopeTestCase as ztc
2from Products.Five import zcml
3from Products.Five import fiveconfigure
4from Products.PloneTestCase import PloneTestCase as ptc
5from Products.PloneTestCase.layer import onsetup
6
7ztc.installProduct('PloneFormGen')
8
9@onsetup
10def setup_package():
11    # roadrunner is not working without these 2 lines
12    import Products.PloneFormGen
13    zcml.load_config('configure.zcml', Products.PloneFormGen)
14
15    fiveconfigure.debug_mode = True
16    import quintagroup.ploneformgen.readonlystringfield
17    zcml.load_config('configure.zcml',
18        quintagroup.ploneformgen.readonlystringfield)
19    fiveconfigure.debug_mode = False
20
21    ztc.installPackage('quintagroup.ploneformgen.readonlystringfield')
22
23setup_package()
24ptc.setupPloneSite(products=['quintagroup.ploneformgen.readonlystringfield',])
25
26
27class ReadOnlyStringFieldTestCase(ptc.PloneTestCase):
28    """Common test base class"""
29
30
31class ReadOnlyStringFieldFunctionalTestCase(ptc.FunctionalTestCase):
32    """Common functional test base class"""
Note: See TracBrowser for help on using the repository browser.