From 14fdabb4bc478f2b96f478dfe287f5cb916f938f Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Wed, 17 Feb 2016 13:45:32 +0100 Subject: [PATCH] [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 --- openerp/tests/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openerp/tests/common.py b/openerp/tests/common.py index 0f03c3f1dc3..a9a6c1261d0 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -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,