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):
default_pref.setPreferredDocumentReferenceRegularExpression(REFERENCE_REGULAR_EXPRESSION)
if default_pref.getPreferenceState() != 'global':
default_pref.enable()
transaction.commit()
self.tic()
return default_pref
def getDocumentModule(self):
return getattr(self.getPortal(),'document_module')
......
......@@ -40,9 +40,8 @@ class TestDocumentWithFlare(TestDocument):
return "DMS with Flare"
def setSystemPreference(self):
default_pref = self.portal.portal_preferences.default_site_preference
default_pref.setPreferredConversionCacheFactory('dms_cache_factory')
TestDocument.setSystemPreference(self)
system_preference = TestDocument.setSystemPreference(self)
system_preference.setPreferredConversionCacheFactory('dms_cache_factory')
def test_suite():
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