Skip to content

Instantly share code, notes, and snippets.

@rmaceissoft
Last active October 2, 2015 10:37
Show Gist options
  • Save rmaceissoft/2228375 to your computer and use it in GitHub Desktop.
Save rmaceissoft/2228375 to your computer and use it in GitHub Desktop.
customizing django testrunner
# 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