[Testbot] Plone 5.0 - Python 2.7 - Build # 2865 - Still failing! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Thu Jul 24 17:09:59 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 2865 - Still Failing!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-5.0-python-2.7/2865/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.app.search
Branch: refs/heads/master
Date: 2014-07-24T18:02:42+02:00
Author: Timo Stollenwerk (tisto) <tisto at plone.org>
Commit: https://github.com/plone/plone.app.search/commit/1ee982ee74cd46a3e9b5c725cd92fbcde9a55aec

Adapt tests to pass with the search settings stored in plone.app.registry.

Files changed:
M CHANGES.rst
M plone/app/search/tests/test_integration.py

diff --git a/CHANGES.rst b/CHANGES.rst
index 99574be..f949fe6 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,11 +5,13 @@ Changelog
 1.2.2 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Adapt tests to pass with the search settings stored in plone.app.registry.
+  [timo]
 
 
 1.2.1 (2014-04-13)
 ------------------
+
 - Do not error if Plone 3 advanced search parameters are used. Fixes
   https://dev.plone.org/ticket/13999
   [anthonygerrard]
@@ -22,6 +24,7 @@ Changelog
 - #13999 Do not error if Plone 3 advanced search parameters are used
   [anthonygerrard]
 
+
 1.2.0 (2014-03-02)
 ------------------
 
diff --git a/plone/app/search/tests/test_integration.py b/plone/app/search/tests/test_integration.py
index 41faa1e..e6ece48 100644
--- a/plone/app/search/tests/test_integration.py
+++ b/plone/app/search/tests/test_integration.py
@@ -6,9 +6,13 @@
 from plone.app.testing import login
 from plone.app.testing import setRoles
 from zope.component import getMultiAdapter
+from zope.component import getUtility
+from plone.registry.interfaces import IRegistry
 
-from plone.app.contentlisting.interfaces import IContentListing
 from Products.CMFCore.utils import getToolByName
+from Products.CMFPlone.interfaces import ISearchSchema
+
+from plone.app.contentlisting.interfaces import IContentListing
 
 from base import SearchTestCase, test_request
 
@@ -71,7 +75,8 @@ def test_blacklisted_types_in_results(self):
         results view.
         """
         portal = self.layer['portal']
-        sp = getToolByName(portal, "portal_properties").site_properties
+        registry = getUtility(IRegistry)
+        search_settings = registry.forInterface(ISearchSchema, prefix="plone")
         q = {'SearchableText': 'spam'}
         res = portal.restrictedTraverse('@@search').results(query=q,
                                                             batch=False)
@@ -79,7 +84,7 @@ def test_blacklisted_types_in_results(self):
                         'Test document is not found in the results.')
 
         # Now let's exclude 'Document' from the search results:
-        sp.types_not_searched += ('Document', )
+        search_settings.types_not_searched = ('Document',)
         res = portal.restrictedTraverse('@@search').results(query=q,
                                                             batch=False)
         self.assertFalse(




-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 2759 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140724/fd0867b6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 86831 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140724/fd0867b6/attachment-0003.obj>


More information about the Testbot mailing list