Last active
October 2, 2015 10:37
-
-
Save rmaceissoft/2228375 to your computer and use it in GitHub Desktop.
customizing django testrunner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make our own testrunner that by default only tests our own apps | |
from django.conf import settings | |
from django.test.simple import DjangoTestSuiteRunner | |
class CustomTestRunner(DjangoTestSuiteRunner): | |
def build_suite(self, test_labels, *args, **kwargs): | |
return super(CustomTestRunner, self).build_suite(test_labels or settings.PROJECT_APPS, *args, **kwargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment