[Erp5-report] r29623 - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 14 09:50:21 CEST 2009
Author: luke
Date: Wed Oct 14 09:50:17 2009
New Revision: 29623
URL: http://svn.erp5.org?rev=29623&view=rev
Log:
- make description string more beautyfull
Modified:
erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=29623&r1=29622&r2=29623&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] Wed Oct 14 09:50:17 2009
@@ -212,8 +212,11 @@
"""
def shortDescription(self):
- doc = self._TestCase__testMethodDoc
- return doc and str(self) + ', ' + doc.split("\n")[0].strip() or None
+ description = str(self)
+ doc = self._TestCase__testMethodDoc
+ if doc and doc.split("\n")[0].strip():
+ description += ', ' + doc.split("\n")[0].strip()
+ return description
def dummy_test(self):
ZopeTestCase._print('All tests are skipped when --save option is passed '
More information about the Erp5-report
mailing list