Commit e4103b73 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testERP5WebWithDms: rollback the change in Caching Policy Manager not to affect following tests.

parent 246d3c85
...@@ -655,6 +655,8 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -655,6 +655,8 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
# Those images can be accessible through extensible content # Those images can be accessible through extensible content
# url : path-of-document + '/' + 'img' + page-index + '.png' # url : path-of-document + '/' + 'img' + page-index + '.png'
# Update policy to have stale values # Update policy to have stale values
policy_orig = self.portal.caching_policy_manager._policies['unauthenticated no language']
try:
self.portal.caching_policy_manager._updatePolicy( self.portal.caching_policy_manager._updatePolicy(
"unauthenticated no language", "python: member is None", "unauthenticated no language", "python: member is None",
"python: getattr(object, 'getModificationDate', object.modified)()", "python: getattr(object, 'getModificationDate', object.modified)()",
...@@ -679,7 +681,8 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -679,7 +681,8 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
(policy.getMaxAgeSecs(), (policy.getMaxAgeSecs(),
policy.getStaleWhileRevalidateSecs(), policy.getStaleWhileRevalidateSecs(),
policy.getStaleIfErrorSecs())) policy.getStaleIfErrorSecs()))
finally:
self.portal.caching_policy_manager._policies['unauthenticated no language'] = policy_orig
def test_PreviewOOoDocumentWithEmbeddedImage(self): def test_PreviewOOoDocumentWithEmbeddedImage(self):
"""Tests html preview of an OOo document with images as extensible content. """Tests html preview of an OOo document with images as extensible content.
......
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