Ignore:
Timestamp:
Oct 27, 2010 3:18:13 PM (14 years ago)
Author:
mylan
Message:

#233: Fixed testcases to emulate proper test environment for plone-3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/tests/base.py

    r2139 r2936  
    6363        # Install PROJECT 
    6464        qi = getattr(portal, 'portal_quickinstaller', None) 
     65        if not ptc.PLONE31: 
     66            qi.installProduct("plone.browserlayer") 
    6567        qi.installProduct(PROJECT_NAME) 
    6668        transaction.commit() 
     
    101103class FunctionalTestCaseNotInstalled(MixinTestCase, ptc.FunctionalTestCase): 
    102104    layer = NotInstalled 
     105 
     106    def afterSetUp(self): 
     107        qi = getattr(self.portal, 'portal_quickinstaller', None) 
     108        if not ptc.PLONE31: 
     109            qi.installProduct("plone.browserlayer") 
Note: See TracChangeset for help on using the changeset viewer.