December 2016
Beginner to intermediate
694 pages
14h 2m
English
Clearly, unittest is not the only Python testing framework. While Django doesn't provide explicit support for alternative frameworks, it does provide a way to invoke tests constructed for an alternative framework as if they were normal Django tests.
When you run ./manage.py test, Django looks at the TEST_RUNNER setting to determine what to do. By default, TEST_RUNNER points to django.test.runner.DiscoverRunner. This class defines the default Django testing behavior. This behavior involves:
test*.py.Read now
Unlock full access