[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user