Commit 43bd93f8 authored by Nicolas Delaby's avatar Nicolas Delaby

Create one Memcached Plugin in test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7234e91f
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.
......@@ -51,6 +52,14 @@ class TestMemcachedTool(ERP5TypeTestCase):
def setUp(self):
ERP5TypeTestCase.setUp(self)
installRealMemcachedTool(self.getPortal())
memcached_tool = self.getPortal().portal_memcached
#create Memcache Plugin
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')
transaction.commit()
self.tic()
def afterSetUp(self):
self.login()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment