Changeset 3403 in products for quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests
- Timestamp:
- Apr 3, 2012 11:40:34 AM (12 years ago)
- 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 8 8 from Testing import ZopeTestCase as ztc 9 9 from Products.Five import zcml 10 from Products.Five import fiveconfigure11 10 from Products.CMFCore.utils import getToolByName 12 from Products.CMFCore.interfaces import IAction, IActionCategory13 11 from Products.CMFCore.ActionInformation import Action, ActionCategory 14 12 from Products.PloneTestCase import PloneTestCase as ptc -
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/selenium/zopeconfig.py
r3402 r3403 4 4 KSSSeleniumTestCase 5 5 6 from plone.app.kss.demo.zopeconfig import PloneSiteLayer, \ 7 LoggedInManagerLayer, LoggedInUserLayer, IResource 6 from plone.app.kss.demo.zopeconfig import LoggedInManagerLayer, IResource 8 7 9 8 -
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_controlpanel.py
r3402 r3403 6 6 7 7 from Products.CMFCore.utils import getToolByName 8 from Products.CMFCore.ActionInformation import Action , ActionCategory8 from Products.CMFCore.ActionInformation import Action 9 9 10 10 from quintagroup.plonetabs import messageFactory as _ … … 73 73 # Revert PloneTestCase's optimization 74 74 # because this breaks our test 75 #### pyflakes.scripts.pyflakes, modified: 76 ## - return array of warnings instead of printing them 77 ## - honour pyflakes:ignore comments 75 78 def __init__(self, text): 76 79 self.text = text … … 78 81 self._v_compiled = getEngine().compile(text) 79 82 from Products.CMFCore.Expression import Expression 83 80 84 optimized__init__ = Expression.__init__ 81 85 Expression.__init__ = __init__ … … 86 90 self.assertEquals(len(errors.keys()), 4, 87 91 'validateActionFields method is not working properly.') 92 #### pyflakes.scripts.pyflakes ends. 88 93 89 94 def test_processErrors(self): -
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_erase.py
r3402 r3403 6 6 from Testing import ZopeTestCase as ztc 7 7 8 from zope.component import getSiteManager9 8 from zope.app.component.hooks import setHooks, setSite 10 9 … … 108 107 109 108 def test_browserLayer(self): 110 sm = getSiteManager(self.portal)111 109 layers = [o.__name__ for o in registered_layers()] 112 110 self.failIf('IPloneTabsProductLayer' in layers, -
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_setup.py
r3402 r3403 1 1 import unittest 2 3 from zope.component import getSiteManager4 2 5 3 from plone.browserlayer.utils import registered_layers … … 71 69 72 70 def test_browserLayerRegistered(self): 73 sm = getSiteManager(self.portal)74 71 layers = [o.__name__ for o in registered_layers()] 75 72 self.failUnless('IPloneTabsProductLayer' in layers,
Note: See TracChangeset
for help on using the changeset viewer.