added DiscoverRunner for django 1.7 and above

This commit is contained in:
Mikela Clemmons 2014-09-21 10:42:27 -07:00
parent 6b1bc44fa2
commit 4269205c3f
1 changed files with 6 additions and 0 deletions

View File

@ -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'