Ignore:
Timestamp:
Apr 3, 2012 11:40:34 AM (12 years ago)
Author:
potar
Message:

Fixed code according with pylint, pyflakes

Location:
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/base.py

    r3402 r3403  
    88from  Testing import ZopeTestCase as ztc 
    99from  Products.Five import zcml 
    10 from  Products.Five import fiveconfigure 
    1110from Products.CMFCore.utils import getToolByName 
    12 from Products.CMFCore.interfaces import IAction, IActionCategory 
    1311from Products.CMFCore.ActionInformation import Action, ActionCategory 
    1412from  Products.PloneTestCase import PloneTestCase as ptc 
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/selenium/zopeconfig.py

    r3402 r3403  
    44    KSSSeleniumTestCase 
    55 
    6 from plone.app.kss.demo.zopeconfig import PloneSiteLayer, \ 
    7     LoggedInManagerLayer, LoggedInUserLayer, IResource 
     6from plone.app.kss.demo.zopeconfig import LoggedInManagerLayer, IResource 
    87 
    98 
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_controlpanel.py

    r3402 r3403  
    66 
    77from Products.CMFCore.utils import getToolByName 
    8 from Products.CMFCore.ActionInformation import Action, ActionCategory 
     8from Products.CMFCore.ActionInformation import Action 
    99 
    1010from quintagroup.plonetabs import messageFactory as _ 
     
    7373        # Revert PloneTestCase's optimization 
    7474        # because this breaks our test 
     75        #### pyflakes.scripts.pyflakes, modified: 
     76        ## - return array of warnings instead of printing them 
     77        ## - honour pyflakes:ignore comments 
    7578        def __init__(self, text): 
    7679            self.text = text 
     
    7881                self._v_compiled = getEngine().compile(text) 
    7982        from Products.CMFCore.Expression import Expression 
     83 
    8084        optimized__init__ = Expression.__init__ 
    8185        Expression.__init__ = __init__ 
     
    8690        self.assertEquals(len(errors.keys()), 4, 
    8791            'validateActionFields method is not working properly.') 
     92        #### pyflakes.scripts.pyflakes ends. 
    8893 
    8994    def test_processErrors(self): 
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_erase.py

    r3402 r3403  
    66from Testing import ZopeTestCase as ztc 
    77 
    8 from zope.component import getSiteManager 
    98from zope.app.component.hooks import setHooks, setSite 
    109 
     
    108107 
    109108    def test_browserLayer(self): 
    110         sm = getSiteManager(self.portal) 
    111109        layers = [o.__name__ for o in registered_layers()] 
    112110        self.failIf('IPloneTabsProductLayer' in layers, 
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_setup.py

    r3402 r3403  
    11import unittest 
    2  
    3 from zope.component import getSiteManager 
    42 
    53from plone.browserlayer.utils import registered_layers 
     
    7169 
    7270    def test_browserLayerRegistered(self): 
    73         sm = getSiteManager(self.portal) 
    7471        layers = [o.__name__ for o in registered_layers()] 
    7572        self.failUnless('IPloneTabsProductLayer' in layers, 
Note: See TracChangeset for help on using the changeset viewer.