Removed Django 1.6 support from test settings

pull/876/head
Karl Hobley 2014-12-15 21:25:51 +00:00
rodzic bbf606926c
commit 15228b11aa
1 zmienionych plików z 2 dodań i 16 usunięć

Wyświetl plik

@ -1,6 +1,5 @@
import os
import django
from django.conf import global_settings
@ -79,26 +78,13 @@ INSTALLED_APPS = [
'wagtail.tests',
]
# If we are using Django 1.6, add South to INSTALLED_APPS
if django.VERSION < (1, 7):
INSTALLED_APPS.append('south')
# If we are using Django 1.7 install wagtailredirects with its appconfig
# Install wagtailredirects with its appconfig
# Theres nothing special about wagtailredirects, we just need to have one
# app which uses AppConfigs to test that hooks load properly
if django.VERSION < (1, 7):
INSTALLED_APPS.append('wagtail.wagtailredirects')
else:
INSTALLED_APPS.append('wagtail.wagtailredirects.apps.WagtailRedirectsAppConfig')
# As we don't have south migrations for tests, South thinks
# the Django 1.7 migrations are South migrations.
SOUTH_MIGRATION_MODULES = {
'tests': 'ignore',
}
# Using DatabaseCache to make sure that the cache is cleared between tests.
# This prevents false-positives in some wagtail core tests where we are