[Erp5-report] r31545 leonardo - /erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Dec 30 19:53:13 CET 2009
Author: leonardo
Date: Wed Dec 30 19:53:13 2009
New Revision: 31545
URL: http://svn.erp5.org?rev=31545&view=rev
Log:
Always use the ERP5TypeTestCase.publish() methods.
Modified:
erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py
Modified: erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py?rev=31545&r1=31544&r2=31545&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py [utf8] Wed Dec 30 19:53:13 2009
@@ -36,8 +36,8 @@
HTTP_OK = 200
-# setting this to a true value allow the use of a debugger
-debug = 0
+# setting this to True allows the .publish() calls to provide tracebacks
+debug = False
class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
"""Tests ODF styles for ERP5."""
@@ -66,10 +66,9 @@
self.portal.portal_selections.setSelectionFor(
'person_module_selection', Selection())
- if debug:
- def publish(self, path, basic=None, **kw):
- kw['handle_errors'] = False
- return ZopeTestCase.Functional.publish(self, path, basic, **kw)
+ def publish(self, *args, **kw):
+ kw['handle_errors'] = not debug
+ return ERP5TypeTestCase.publish(self, *args, **kw)
def _validate(self, odf_file_data):
error_list = self.validator.validate(odf_file_data)
More information about the Erp5-report
mailing list