Skip to content

Commit

Permalink
Fix test that started to fail due to moving the search control panel …
Browse files Browse the repository at this point in the history
…to z3c.form.
  • Loading branch information
tisto committed Jul 24, 2014
1 parent 42a638d commit 7d5af15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plone/app/layout/sitemap/tests/test_sitemap.py
@@ -1,6 +1,7 @@
from plone.registry.interfaces import IRegistry
from zope.component import getUtility
from Products.CMFPlone.interfaces import ISiteSchema
from Products.CMFPlone.interfaces import ISearchSchema

from gzip import GzipFile
from StringIO import StringIO
Expand Down Expand Up @@ -190,8 +191,9 @@ def test_types_not_searched(self):
self.wftool.doActionFor(newsitem, 'publish')
self.assertTrue('published' == self.wftool.getInfoFor(
newsitem, 'review_state'))
self.site_properties.manage_changeProperties(
types_not_searched=['News Item'])
registry = getUtility(IRegistry)
search_settings = registry.forInterface(ISearchSchema, prefix="plone")
search_settings.types_not_searched = ('News Item',)
self.logout()

xml = self.uncompress(self.sitemap())
Expand Down

1 comment on commit 7d5af15

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS PASSED
Mr.Roboto url : http://jenkins.plone.org/roboto/get_info?push=8ae136ff9490435f97f0abda0cd25262
plone-5.0-python-2.7 [SUCCESS]

Please sign in to comment.