Minor fixes to tests.
This commit is contained in:
parent
5b97c14368
commit
8e65ae4558
|
@ -21,7 +21,8 @@ if django_loaded: # pragma: no cover
|
|||
},
|
||||
INSTALLED_APPS=[
|
||||
'tests.django_test_app',
|
||||
]
|
||||
],
|
||||
MIDDLEWARE_CLASSES=[],
|
||||
)
|
||||
# https://docs.djangoproject.com/en/dev/releases/1.7/#app-loading-changes
|
||||
if django.VERSION >= (1, 7):
|
||||
|
|
|
@ -179,11 +179,10 @@ class SouthTestCase(unittest.TestCase):
|
|||
|
||||
if django_loaded:
|
||||
from django.test import TestCase
|
||||
try:
|
||||
from django.test.runner import DiscoverRunner as TestRunner
|
||||
except ImportError:
|
||||
# django < 1.6
|
||||
if django.VERSION[:2] < (1, 6):
|
||||
from django.test.simple import DjangoTestSuiteRunner as TestRunner
|
||||
else:
|
||||
from django.test.runner import DiscoverRunner as TestRunner
|
||||
|
||||
class DbInteractingTestCase(TestCase):
|
||||
|
||||
|
|
Loading…
Reference in New Issue