Skip to content

Commit

Permalink
Adapt tests
Browse files Browse the repository at this point in the history
With PLIP 1343 being merged some tests need to be adapted.

Now the catalog no longer processes indexing operations right away.

Some tests rely on that, so a minimal adaptation was needed.

References:
plone/Products.CMFPlone#1343
  • Loading branch information
gforcada committed Feb 21, 2016
1 parent c0e2c32 commit e34e2ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plone/app/multilingual/testing.py
Expand Up @@ -30,6 +30,8 @@
from zope.interface import alsoProvides
from zope.interface import noLongerProvides
from zope.lifecycleevent import ObjectModifiedEvent
from Products.CMFCore.indexing import processQueue

import plone.app.dexterity
import plone.app.multilingual
try:
Expand Down Expand Up @@ -98,6 +100,7 @@ def setUp(self):
# Setup language root folders
setupTool = SetupMultilingualSite()
setupTool.setupSite(portal)
processQueue()

MULTIPLE_LANGUAGES_LAYER = MultipleLanguagesLayer()

Expand Down

0 comments on commit e34e2ee

Please sign in to comment.