Changeset 2731 in products for quintagroup.pfg.captcha/branches
- Timestamp:
- Aug 10, 2010 9:59:59 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/branches/migration/quintagroup/pfg/captcha/tests.py
r2101 r2731 38 38 39 39 setup_product() 40 ptc.setupPloneSite( products=['PloneFormGen',], extension_profiles=PROFILES)40 ptc.setupPloneSite() #products=['PloneFormGen',], extension_profiles=PROFILES) 41 41 42 42 43 class TestInstallations(ptc.PloneTestCase): 43 class PFGCaptchaTestCaseMixin(object): 44 45 def installPFGCaptcha(self): 46 for p in REQUIREMENTS: 47 self.addProduct(p) 48 49 50 class PFGCaptchaAutoInstallTestCase(PFGCaptchaTestCaseMixin, ptc.PloneTestCase): 51 def afterSetUp(self): 52 self.installPFGCaptcha() 53 54 55 class TestInstallations(PFGCaptchaAutoInstallTestCase): 44 56 45 57 def testInstalledProducts(self): … … 80 92 81 93 82 class TestCaptchaField( ptc.PloneTestCase):94 class TestCaptchaField(PFGCaptchaAutoInstallTestCase): 83 95 84 96 def afterSetUp(self): 97 super(TestCaptchaField, self).afterSetUp() 85 98 self.folder.invokeFactory('FormFolder', 'ff1') 86 99 self.ff1 = getattr(self.folder, 'ff1') … … 113 126 114 127 115 class TestCaptchaWidget( ptc.PloneTestCase):128 class TestCaptchaWidget(PFGCaptchaAutoInstallTestCase): 116 129 117 130 CF = CaptchaField.__module__ + '.CaptchaField' … … 119 132 120 133 def afterSetUp(self): 134 super(TestCaptchaWidget, self).afterSetUp() 121 135 self.widgets = dict(availableWidgets()) 122 136 … … 135 149 136 150 137 class TestCaptchaValidator( ptc.PloneTestCase):151 class TestCaptchaValidator(PFGCaptchaAutoInstallTestCase): 138 152 139 153 def getValidator(self):
Note: See TracChangeset
for help on using the changeset viewer.