mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Clean up test warnings for Django 1.8
* Django 1.8 requires TEMPLATES setting (for admin tests) * Ignore cycle tag deprecation warnings One remaining PendingDeprecationWarning: "the imp module is deprecated in favour of importlib" is coming from six, and has a fix waiting to land: https://bitbucket.org/gutworth/six/issue/112
This commit is contained in:
24
runtests.py
24
runtests.py
@@ -31,7 +31,29 @@ settings.configure(
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
)
|
||||
),
|
||||
TEMPLATES=[
|
||||
# Django 1.8 starter-project template settings
|
||||
# (needed for test_admin)
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [
|
||||
# insert your TEMPLATE_DIRS here
|
||||
],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.template.context_processors.debug',
|
||||
'django.template.context_processors.i18n',
|
||||
'django.template.context_processors.media',
|
||||
'django.template.context_processors.static',
|
||||
'django.template.context_processors.tz',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user