#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Run tests for the Django LTI Tool PRovider
"""

import sys
from django.conf import settings
from django.core.management import execute_from_command_line

settings.configure(
    DEBUG=True,
    DATABASES={
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
        }
    },
    SITE_ID=1,
    INSTALLED_APPS=[
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django_lti_tool_provider'
    ],
    MIDDLEWARE_CLASSES=[
        'django.middleware.common.CommonMiddleware',
        'django.contrib.sessions.middleware.SessionMiddleware',
        'django.middleware.csrf.CsrfViewMiddleware',
        'django.contrib.auth.middleware.AuthenticationMiddleware',
        'django.contrib.messages.middleware.MessageMiddleware',
    ],
    ROOT_URLCONF='django_lti_tool_provider.tests.urls',
    REDIRECT_AFTER_LTI='home',
    TEMPLATE_CONTEXT_PROCESSORS=(
        "django.contrib.auth.context_processors.auth"
    ),
    USE_TZ=True,
    SOUTH_TESTS_MIGRATE=True,
    LTI_CLIENT_KEY='lti_client_key',
    LTI_CLIENT_SECRET='lti_client_secret',
    SECRET_KEY='test_secret_key_not_need_to_look_like_actual_secret_key',
)

if __name__ == "__main__":
    args = sys.argv[1:]
    paths = [arg for arg in args if arg[0] != '-']
    if not paths:
        paths = ["django_lti_tool_provider/tests"]
    options = [arg for arg in args if arg not in paths]
    execute_from_command_line([sys.argv[0], "test"] + paths + options)
@@ -958,30 +958,173 @@
 LATE
-_CONTEXT_PROCESSORS=(%0A
+S=%5B%0A        %7B%0A            %22BACKEND%22: %22django.template.backends.django.DjangoTemplates%22,%0A            %22OPTIONS%22: %7B%0A                %22context_processors%22: %5B%0A            
     
@@ -1177,17 +1177,59 @@
 th%22%0A    
-)
+            %5D%0A            %7D%0A        %7D%0A    %5D
 ,%0A    US
@@ -1723,8 +1723,9 @@
 options)
+%0A

Upgrade to TEMPLATES setting.