Commit 949af1f5 authored by Łukasz Nowak's avatar Łukasz Nowak

- make description string more beautyfull


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29623 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6bc92722
...@@ -212,8 +212,11 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -212,8 +212,11 @@ class ERP5TypeTestCase(PortalTestCase):
""" """
def shortDescription(self): def shortDescription(self):
description = str(self)
doc = self._TestCase__testMethodDoc doc = self._TestCase__testMethodDoc
return doc and str(self) + ', ' + doc.split("\n")[0].strip() or None if doc and doc.split("\n")[0].strip():
description += ', ' + doc.split("\n")[0].strip()
return description
def dummy_test(self): def dummy_test(self):
ZopeTestCase._print('All tests are skipped when --save option is passed ' ZopeTestCase._print('All tests are skipped when --save option is passed '
......
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