Skip to content

Instantly share code, notes, and snippets.

@warvariuc
Created June 6, 2021 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warvariuc/43af88b6500b7819e6f188e1ee3a5651 to your computer and use it in GitHub Desktop.
Save warvariuc/43af88b6500b7819e6f188e1ee3a5651 to your computer and use it in GitHub Desktop.
# Make test method names str more friendly for feeding them to ./manage.py test
unittest.case.TestCase.__str__ = lambda self: \
f'{self.__class__.__module__}.{self.__class__.__qualname__}.{self._testMethodName}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment