summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/settings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/settings.py b/tests/settings.py
index ff4d1d6..b689fcc 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -1,5 +1,6 @@
# Django settings for example project.
import os
+from django import VERSION as DJANGO_VERSION
DEBUG = True
TEMPLATE_DEBUG = DEBUG
@@ -68,3 +69,8 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
+
+# Use DiscoverRunner on Django 1.7 and above
+if DJANGO_VERSION[0] == 1 and DJANGO_VERSION[1] >= 7:
+ TEST_RUNNER = 'django.test.runner.DiscoverRunner'
+