[Erp5-report] r27850 - /erp5/trunk/products/ERP5/tests/testERP5Web.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 1 15:09:05 CEST 2009
Author: jm
Date: Wed Jul 1 15:09:03 2009
New Revision: 27850
URL: http://svn.erp5.org?rev=27850&view=rev
Log:
Fix TestERP5Web so that it doesn't publish already published documents.
Modified:
erp5/trunk/products/ERP5/tests/testERP5Web.py
Modified: erp5/trunk/products/ERP5/tests/testERP5Web.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Web.py?rev=27850&r1=27849&r2=27850&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Web.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Web.py [utf8] Wed Jul 1 15:09:03 2009
@@ -425,7 +425,6 @@
portal.portal_categories.publication_section.newContent(portal_type = 'Category',
id = category_id)
- web_page_list = []
property_dict = { '01' : dict(language = 'en' , version = "1" , reference = "A"),
'02' : dict(language = 'en' , version = "2" , reference = "B"),
'03' : dict(language = 'en' , version = "3" , reference = "C"),
@@ -456,6 +455,7 @@
% (sequence_count)
ZopeTestCase._print(message)
+ web_page_list = []
for key in sequence:
web_page = self.portal.web_page_module.newContent(
title=key,
@@ -469,10 +469,10 @@
transaction.commit()
self.tic()
- # in draft state no documents should belong to this Web Section
+ # in draft state, no documents should belong to this Web Section
self.assertEqual(0, len(websection.getDocumentValueList()))
- # when published all web pages should belong to it
+ # when published, all web pages should belong to it
for web_page in web_page_list:
web_page.publish()
transaction.commit()
More information about the Erp5-report
mailing list