Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
b6f6869c
Commit
b6f6869c
authored
Dec 14, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use available memcached persistent server.
parent
0499be8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
product/ERP5OOo/tests/testDmsWithFlare.py
product/ERP5OOo/tests/testDmsWithFlare.py
+7
-0
No files found.
product/ERP5OOo/tests/testDmsWithFlare.py
View file @
b6f6869c
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
import
unittest
import
unittest
from
testDms
import
TestDocument
from
testDms
import
TestDocument
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
_getPersistentMemcachedServerDict
class
TestDocumentWithFlare
(
TestDocument
):
class
TestDocumentWithFlare
(
TestDocument
):
"""
"""
...
@@ -41,7 +43,12 @@ class TestDocumentWithFlare(TestDocument):
...
@@ -41,7 +43,12 @@ class TestDocumentWithFlare(TestDocument):
def
setSystemPreference
(
self
):
def
setSystemPreference
(
self
):
system_preference
=
TestDocument
.
setSystemPreference
(
self
)
system_preference
=
TestDocument
.
setSystemPreference
(
self
)
memcached
=
_getPersistentMemcachedServerDict
()
system_preference
.
setPreferredConversionCacheFactory
(
'dms_cache_factory'
)
system_preference
.
setPreferredConversionCacheFactory
(
'dms_cache_factory'
)
persistent_memcached_plugin
=
self
.
portal
.
portal_memcached
.
persistent_memcached_plugin
persistent_memcached_plugin
.
setUrlString
(
'%s:%s'
%
(
memcached
[
'hostname'
],
memcached
[
'port'
]))
self
.
portal
.
portal_caches
.
dms_cache_factory
.
persistent_cache_plugin
.
setSpecialiseValue
(
persistent_memcached_plugin
)
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment