[REF] tests: inline the full docstring in the logs

meaningless entries like
` Checks that the bundle's cache is working, i.e. that a bundle creates only enough
become
` Checks that the bundle's cache is working, i.e. that a bundle creates only enough ir.attachment records when rendered multiple times

see https://docs.python.org/2/library/unittest.html#unittest.TestCase.shortDescription
This commit is contained in:
Simon Lejeune
2016-03-03 17:45:19 +01:00
parent 9631a30228
commit 14fdabb4bc
+4
View File
@@ -131,6 +131,10 @@ class BaseCase(unittest.TestCase):
else:
return self._assertRaises(exception)
def shortDescription(self):
doc = self._testMethodDoc
return doc and ' '.join(filter(None, map(str.strip, doc.splitlines()))) or None
class TransactionCase(BaseCase):
""" TestCase in which each test method is run in its own transaction,