Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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