From d50537c9136ef5329000d39862cbfdb71b1b1dc6 Mon Sep 17 00:00:00 2001 From: Ondřej Nosek Date: May 05 2020 12:37:46 +0000 Subject: Disable test method's docstring in nosetests list Signed-off-by: Ondřej Nosek --- diff --git a/tests/utils.py b/tests/utils.py index 483a8e7..7d049e4 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -16,6 +16,15 @@ try: except ImportError: import unittest + +# to prevent printing the method's docstring in the nosetests list +def shortDescription(self): + return None + + +unittest.TestCase.shortDescription = shortDescription + + # Following global variables are used to construct Commands for tests in this # module. Only for testing purpose, and they are not going to be used for # hitting real services.