Skip to content

Commit

Permalink
those new gzip tests are actually NOT failling without the related fi…
Browse files Browse the repository at this point in the history
…x in ThemeTransform.transformIterable, but there is not obvious way to reproduce the https://dev.plone.org/ticket/12038 bug with browser test (nor selenium by the way).
  • Loading branch information
ebrehault committed Nov 10, 2012
1 parent f72e556 commit b27c980
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/plone/app/theming/testing.py
Expand Up @@ -22,6 +22,27 @@ def setUpPloneSite(self, portal):
# install into the Plone site
applyProfile(portal, 'plone.app.theming:default')

class ThemingWithCaching(Theming):
defaultBases = (PLONE_FIXTURE,)

def setUpZope(self, app, configurationContext):
# load ZCML
import plone.app.theming.tests
import plone.app.caching
xmlconfig.file('configure.zcml', plone.app.caching, context=configurationContext)
xmlconfig.file('configure.zcml', plone.app.theming.tests, context=configurationContext)

# Run the startup hook
from plone.app.theming.plugins.hooks import onStartup
onStartup(None)

def setUpPloneSite(self, portal):
# install into the Plone site
applyProfile(portal, 'plone.app.caching:default')
applyProfile(portal, 'plone.app.theming:default')

THEMING_FIXTURE = Theming()
THEMING_INTEGRATION_TESTING = IntegrationTesting(bases=(THEMING_FIXTURE,), name="Theming:Integration")
THEMING_FUNCTIONAL_TESTING = FunctionalTesting(bases=(THEMING_FIXTURE,), name="Theming:Functional")
THEMINGWITHCACHING_FIXTURE = ThemingWithCaching()
THEMINGWITHCACHING_TESTING = IntegrationTesting(bases=(THEMINGWITHCACHING_FIXTURE,), name="Theming:IntegrationWithCaching")

0 comments on commit b27c980

Please sign in to comment.