Changeset 3170 in products


Ignore:
Timestamp:
Apr 21, 2011 3:06:03 PM (13 years ago)
Author:
zidane
Message:

fix pyflakes

Location:
quintagroup.analytics/trunk/quintagroup/analytics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/views.py

    r3169 r3170  
    1212try: 
    1313    from plone.portlets.interfaces import IPortletAssignmentSettings 
     14    IPortletAssignmentSettings 
    1415except ImportError: 
    1516    "Before plon4 we don't have an annotation storage for settings." 
  • quintagroup.analytics/trunk/quintagroup/analytics/tests.py

    r3169 r3170  
    66from Products.Five import zcml 
    77from Products.Five import fiveconfigure 
    8 from zope.component import testing, queryMultiAdapter, getUtility 
     8from zope.component import queryMultiAdapter, getUtility 
    99 
    1010from Products.PloneTestCase import PloneTestCase as ptc 
     
    6565        uf = portal.acl_users 
    6666        pm = portal.portal_membership 
    67         pc = portal.portal_catalog 
     67        portal.portal_catalog 
    6868        users = [u[0] for u in cls.users] 
    6969        for u in users: 
     
    446446 
    447447def test_suite(): 
    448     from unittest import TestSuite, makeSuite 
    449  
    450448    test_suite = unittest.TestSuite([ 
    451449 
     
    471469        ]) 
    472470 
    473     test_suite.addTest(makeSuite(TestQAInstallation)) 
    474     test_suite.addTest(makeSuite(TestOwnershipByType)) 
    475     test_suite.addTest(makeSuite(TestOwnershipByState)) 
    476     test_suite.addTest(makeSuite(TestTypeByState)) 
    477     test_suite.addTest(makeSuite(LegacyPortlets)) 
    478     test_suite.addTest(makeSuite(TestPropertiesStats)) 
    479     test_suite.addTest(makeSuite(TestPortletsStats)) 
     471    test_suite.addTest(unittest.makeSuite(TestQAInstallation)) 
     472    test_suite.addTest(unittest.makeSuite(TestOwnershipByType)) 
     473    test_suite.addTest(unittest.makeSuite(TestOwnershipByState)) 
     474    test_suite.addTest(unittest.makeSuite(TestTypeByState)) 
     475    test_suite.addTest(unittest.makeSuite(LegacyPortlets)) 
     476    test_suite.addTest(unittest.makeSuite(TestPropertiesStats)) 
     477    test_suite.addTest(unittest.makeSuite(TestPortletsStats)) 
    480478    return test_suite 
    481479 
Note: See TracChangeset for help on using the changeset viewer.