Skip to content

Instantly share code, notes, and snippets.

@barahilia
Last active October 6, 2016 06:00
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 barahilia/bfa1097e3937b474decf14ace88262be to your computer and use it in GitHub Desktop.
Save barahilia/bfa1097e3937b474decf14ace88262be to your computer and use it in GitHub Desktop.
from unittest import TestSuite
def print_tests(tests):
if isinstance(tests, TestSuite):
for child in tests:
print_tests(child)
else:
print tests.id() # package.module.TestClass.test_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment