Changeset 2734 in products for quintagroup.pfg.captcha/branches/migration/quintagroup/pfg/captcha/tests/base.py
- Timestamp:
- Aug 10, 2010 2:43:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/branches/migration/quintagroup/pfg/captcha/tests/base.py
r2732 r2734 7 7 from Products.Five import fiveconfigure 8 8 from Testing import ZopeTestCase as ztc 9 from Products.PloneTestCase.layer import onsetup10 9 11 10 from Products.PloneTestCase.layer import PloneSite 11 from Products.PloneTestCase import setup as ptc_setup 12 12 from Products.PloneTestCase import PloneTestCase as ptc 13 from Products.PloneTestCase import setup as ptc_setup14 15 from Products.PloneTestCase.PloneTestCase import portal_owner16 from Products.PloneTestCase.PloneTestCase import default_password17 13 18 14 PACKAGES = [ … … 20 16 'quintagroup.pfg.captcha', 21 17 ] 22 PROFILES = [p+':default' for p in PACKAGES]23 18 REQUIREMENTS = ['PloneFormGen',] + PACKAGES 24 19 … … 38 33 ztc.installPackage('quintagroup.captcha.core') 39 34 35 @classmethod 36 def tearDown(cls): 37 ptc_setup.cleanupPloneSite(ptc_setup.portal_name) 38 40 39 41 40 class Installed(NotInstalled): … … 51 50 # Install PROJECT 52 51 qi = getattr(portal, 'portal_quickinstaller', None) 53 for p in REQUIREMENTS: 54 qi.installProduct(p) 52 qi.installProduct("quintagroup.pfg.captcha") 55 53 transaction.commit() 56 54 … … 63 61 layer = Installed 64 62 63 65 64 class TestCaseNotInstalled(ptc.PloneTestCase): 66 65 layer = NotInstalled
Note: See TracChangeset
for help on using the changeset viewer.