#399 Disable test method's docstring in nosetests list
Merged 3 years ago by onosek. Opened 3 years ago by onosek.
onosek/fedpkg docstring_off  into  master

file modified
+8
@@ -28,6 +28,14 @@ 

      import unittest

  

  

+ # to prevent printing the method's docstring in the nosetests list

+ def shortDescription(self):

+     return None

+ 

+ 

+ unittest.TestCase.shortDescription = shortDescription

+ 

+ 

  class Assertions(object):

  

      def get_exists_method(self, search_dir=None):

Looks good to me.

An alternative may be to consider replacing nose (which is dead in upstream) with pytest.

Ok, this means that I can safely merge it and the code will reside there until pytest adoption. I wasn't aware of the nosetest situation, so I will open an issue for this to track it in the future.

rebased onto f9dd0bf

3 years ago

Pull-Request has been merged by onosek

3 years ago