Skip to content

Commit

Permalink
Testing 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatohater committed Oct 25, 2014
1 parent de5be52 commit 86d7301
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions quicktest.py
Expand Up @@ -6,14 +6,9 @@
import sys

import django

if django.VERSION[0] == 1 and django.VERSION[1] >= 7:
django.setup()

from django.conf import settings



class QuickDjangoTest(object):
"""
A quick way to run the Django test suite without a fully-configured project.
Expand Down Expand Up @@ -86,6 +81,8 @@ def _new_tests(self):
INSTALLED_APPS = self.INSTALLED_APPS + self.apps,
ROOT_URLCONF = 'unfriendly.tests.urls',
)
if django.VERSION[0] == 1 and django.VERSION[1] >= 7:
django.setup()
from django.test.simple import DjangoTestSuiteRunner
failures = DjangoTestSuiteRunner().run_tests(self.apps, verbosity=1)
if failures:
Expand Down

0 comments on commit 86d7301

Please sign in to comment.