Ticket #17525: django.diff

File django.diff, 1.3 KB (added by andrey@…, 4 years ago)
  • django/contrib/auth/tests/context_processors.py

    diff --git a/django/contrib/auth/tests/context_processors.py b/django/contrib/auth/tests/context_processors.py
    index 49172c6..2b84482 100644
    a b from django.conf import settings 
    44from django.contrib.auth import authenticate
    55from django.db.models import Q
    66from django.test import TestCase
     7from django.test.utils import override_settings
    78
    89
    910class AuthContextProcessorTests(TestCase):
    class AuthContextProcessorTests(TestCase): 
    2223    def tearDown(self):
    2324        settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS
    2425
     26    @override_settings(MIDDLEWARE_CLASSES=(
     27        'django.contrib.sessions.middleware.SessionMiddleware',
     28        'django.contrib.auth.middleware.AuthenticationMiddleware',
     29    ))
    2530    def test_session_not_accessed(self):
    2631        """
    2732        Tests that the session is not accessed simply by including
  • django/contrib/auth/tests/templates/registration/login.html

    diff --git a/django/contrib/auth/tests/templates/registration/login.html b/django/contrib/auth/tests/templates/registration/login.html
    index 027da71..d960111 100644
    a b  
    1 {{ form.as_ul }}
    2  No newline at end of file
     1{{ form }}
     2 No newline at end of file
Back to Top