Ignore:
Timestamp:
Jun 15, 2010 6:36:40 PM (14 years ago)
Author:
mylan
Message:

#206: some cleanup, simplify tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/test_refactoring/quintagroup/plonegooglesitemaps/tests/base.py

    r2394 r2534  
    3030 
    3131 
    32 class MixinTestCase: 
     32class MixinTestCase(object): 
    3333    """ Define layer and common afterSetup method with package installation. 
    3434        Package installation on plone site setup impossible because of 
     
    3939    def afterSetUp(self): 
    4040        self.loginAsPortalOwner() 
     41        self.workflow = self.portal.portal_workflow 
    4142 
    4243 
     
    4445    """ For unit tests """ 
    4546 
     47 
    4648class FunctionalTestCase(MixinTestCase, ptc.FunctionalTestCase): 
    4749    """ For functional tests """ 
     50 
     51    def afterSetUp(self): 
     52        super(FunctionalTestCase, self).afterSetUp() 
     53        self.auth = "%s:%s" % (portal_owner, default_password) 
    4854 
    4955# Initialize all needed zcml directives 
Note: See TracChangeset for help on using the changeset viewer.