Commit 809e816e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

commit transaction after each edit(). but still this test fails because of...

commit transaction after each edit(). but still this test fails because of conversion cache in portal_caches, that should be flushed after edit().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28996 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ee635ad
...@@ -210,8 +210,12 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -210,8 +210,12 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional):
self.portal.portal_transforms.max_sec_in_cache=-1 self.portal.portal_transforms.max_sec_in_cache=-1
page = self.web_page_module.newContent(portal_type='Web Page') page = self.web_page_module.newContent(portal_type='Web Page')
page.edit(text_content='<p>Hé Hé Hé!</p>') page.edit(text_content='<p>Hé Hé Hé!</p>')
transaction.commit()
self.tic()
self.assertEquals('Hé Hé Hé!', page.asText().strip()) self.assertEquals('Hé Hé Hé!', page.asText().strip())
page.edit(text_content='<p>Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé!</p>') page.edit(text_content='<p>Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé!</p>')
transaction.commit()
self.tic()
self.assertEquals("""Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé self.assertEquals("""Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé Hé
Hé Hé Hé!""", page.asText().strip()) Hé Hé Hé!""", page.asText().strip())
......
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