[Testbot] Plone 5.0 - Python 2.7 - Build # 2885 - Fixed! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Sat Jul 26 20:58:58 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 2885 - Fixed!
-------------------------------------------------------------------------------

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


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

Repository: Products.CMFPlone
Branch: refs/heads/master
Date: 2014-07-26T21:54:31+02:00
Author: Timo Stollenwerk (tisto) <tisto at plone.org>
Commit: https://github.com/plone/Products.CMFPlone/commit/2f87c16950d5ac572fa45a916c4fcc788c05357b

Adapt test to new generate_tabs p.a.registry setting.

Files changed:
M Products/CMFPlone/tests/testNavigationView.py

diff --git a/Products/CMFPlone/tests/testNavigationView.py b/Products/CMFPlone/tests/testNavigationView.py
index e608800..1e48e8c 100644
--- a/Products/CMFPlone/tests/testNavigationView.py
+++ b/Products/CMFPlone/tests/testNavigationView.py
@@ -1,4 +1,7 @@
+from zope.component import getUtility
 from zope.interface import directlyProvides
+from plone.registry.interfaces import IRegistry
+from Products.CMFPlone.interfaces import INavigationSchema
 
 from Products.CMFPlone.tests import PloneTestCase
 from Products.CMFPlone.tests import dummy
@@ -587,8 +590,12 @@ def testStateFiltering(self):
     def testDisableFolderTabs(self):
         # Setting the site_property disable_folder_sections should remove
         # all folder based tabs
-        props = self.portal.portal_properties.site_properties
-        props.manage_changeProperties(disable_folder_sections=True)
+        registry = getUtility(IRegistry)
+        navigation_settings = registry.forInterface(
+            INavigationSchema,
+            prefix="plone"
+        )
+        navigation_settings.generate_tabs = False
         view = self.view_class(self.portal, self.request)
         tabs = view.topLevelTabs(actions=[])
         self.assertEqual(tabs, [])




-------------------------------------------------------------------------------


More information about the Testbot mailing list