diff --git a/product/ERP5Form/tests/testSelectionTool.py b/product/ERP5Form/tests/testSelectionTool.py index 3d1023ffdb09308357e8db7dcc9b3ad9c345a30b..bbea06dfc7a9bfd1c202d86bf94177ec3fa29486 100644 --- a/product/ERP5Form/tests/testSelectionTool.py +++ b/product/ERP5Form/tests/testSelectionTool.py @@ -354,6 +354,12 @@ class TestSelectionToolMemcachedStorage(TestSelectionTool): return "SelectionTool with Memcached Storage" def afterSetUp(self): + # create a Memcached Plugin + memcached_tool = self.getPortal().portal_memcached + if getattr(memcached_tool, 'default_memcached_plugin', None) is None: + memcached_tool.newContent(portal_type='Memcached Plugin', + int_index=0, + url_string='127.0.0.1:11211') self.portal.portal_selections.setStorage('Memcached Tool') TestSelectionTool.afterSetUp(self)