Commit a0295c25 authored by Łukasz Nowak's avatar Łukasz Nowak

- check what is happening when clear cache does not work (which is normal)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40363 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f5cf3574
...@@ -617,6 +617,13 @@ class TestPreferences(PropertySheetTestCase): ...@@ -617,6 +617,13 @@ class TestPreferences(PropertySheetTestCase):
self.assertEqual(system_preference_string, self.assertEqual(system_preference_string,
portal_preferences.getDummystring()) portal_preferences.getDummystring())
def test_system_preference_value_prefererred_clear_cache_disabled(self):
# simulate situation when _clearCache does nothing, for example in case
# if memcached or any other non-deleteable cache is used
from Products.ERP5Form.Document.Preference import Preference
Preference._clearCache = lambda *args,**kwargs: None
self.test_system_preference_value_prefererred()
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestPreferences)) suite.addTest(unittest.makeSuite(TestPreferences))
......
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