From d60b0f85aed50e434fdef343af7907385e63bff8 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sun, 13 Dec 2009 11:40:35 +0000 Subject: [PATCH] Reverted r31222 due to lack of peer review git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31263 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Web.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5/tests/testERP5Web.py b/product/ERP5/tests/testERP5Web.py index 5168e596c2..17b628fe34 100644 --- a/product/ERP5/tests/testERP5Web.py +++ b/product/ERP5/tests/testERP5Web.py @@ -206,6 +206,9 @@ class TestERP5Web(ERP5TypeTestCase): ZopeTestCase._print(message) # disable portal_transforms cache self.portal.portal_transforms.max_sec_in_cache=-1 + # use w3m dump explicitly + self.portal.portal_transforms.manage_addPolicy(output_mimetype='text/plain', + required_transforms=['w3m_dump']) page = self.web_page_module.newContent(portal_type='Web Page') page.edit(text_content='<p>Hé Hé Hé!</p>') transaction.commit() @@ -927,6 +930,9 @@ Hé Hé Hé!""", page.asText().strip()) portal = self.getPortal() request = portal.REQUEST request['PARENTS'] = [self.app] + # use w3m dump explicitly + self.portal.portal_transforms.manage_addPolicy(output_mimetype='text/plain', + required_transforms=['w3m_dump']) website = self.setupWebSite() web_section_portal_type = 'Web Section' web_section = website.newContent(portal_type=web_section_portal_type) -- 2.30.9