Ignore:
Timestamp:
Aug 10, 2010 2:43:54 PM (10 years ago)
Author:
mylan
Message:

#222: Added test for migration from old qPloneCaptchaField to new quintagroup.pfg.captcha

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.pfg.captcha/branches/migration/quintagroup/pfg/captcha/tests/base.py

    r2732 r2734  
    77from Products.Five import fiveconfigure 
    88from Testing import ZopeTestCase as ztc 
    9 from Products.PloneTestCase.layer import onsetup 
    109 
    1110from Products.PloneTestCase.layer import PloneSite 
     11from Products.PloneTestCase import setup as ptc_setup 
    1212from Products.PloneTestCase import PloneTestCase as ptc 
    13 from Products.PloneTestCase import setup as ptc_setup 
    14  
    15 from Products.PloneTestCase.PloneTestCase import portal_owner 
    16 from Products.PloneTestCase.PloneTestCase import default_password 
    1713 
    1814PACKAGES = [ 
     
    2016    'quintagroup.pfg.captcha', 
    2117] 
    22 PROFILES = [p+':default' for p in PACKAGES] 
    2318REQUIREMENTS = ['PloneFormGen',] + PACKAGES 
    2419 
     
    3833        ztc.installPackage('quintagroup.captcha.core') 
    3934 
     35    @classmethod 
     36    def tearDown(cls): 
     37        ptc_setup.cleanupPloneSite(ptc_setup.portal_name) 
     38 
    4039 
    4140class Installed(NotInstalled): 
     
    5150        # Install PROJECT 
    5251        qi = getattr(portal, 'portal_quickinstaller', None) 
    53         for p in REQUIREMENTS: 
    54             qi.installProduct(p) 
     52        qi.installProduct("quintagroup.pfg.captcha") 
    5553        transaction.commit() 
    5654 
     
    6361    layer = Installed 
    6462 
     63 
    6564class TestCaseNotInstalled(ptc.PloneTestCase): 
    6665    layer = NotInstalled 
Note: See TracChangeset for help on using the changeset viewer.