Commit 17d830b3 authored by Nicolas Delaby's avatar Nicolas Delaby

Since r29855, a system preference was created instead of using,

default_site_preference so testDmsWithFlare does nothing more than
testDms.
Now, preferred_cache_cache_factory is set to "dms_cache_factory"
which enable flare as memcached backend.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31252 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4064d4e8
...@@ -122,8 +122,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -122,8 +122,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
default_pref.setPreferredDocumentReferenceRegularExpression(REFERENCE_REGULAR_EXPRESSION) default_pref.setPreferredDocumentReferenceRegularExpression(REFERENCE_REGULAR_EXPRESSION)
if default_pref.getPreferenceState() != 'global': if default_pref.getPreferenceState() != 'global':
default_pref.enable() default_pref.enable()
transaction.commit() return default_pref
self.tic()
def getDocumentModule(self): def getDocumentModule(self):
return getattr(self.getPortal(),'document_module') return getattr(self.getPortal(),'document_module')
......
...@@ -40,9 +40,8 @@ class TestDocumentWithFlare(TestDocument): ...@@ -40,9 +40,8 @@ class TestDocumentWithFlare(TestDocument):
return "DMS with Flare" return "DMS with Flare"
def setSystemPreference(self): def setSystemPreference(self):
default_pref = self.portal.portal_preferences.default_site_preference system_preference = TestDocument.setSystemPreference(self)
default_pref.setPreferredConversionCacheFactory('dms_cache_factory') system_preference.setPreferredConversionCacheFactory('dms_cache_factory')
TestDocument.setSystemPreference(self)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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