Ticket #17691: middleware.patch
File middleware.patch, 896 bytes (added by , 13 years ago) |
---|
-
django/contrib/auth/tests/context_processors.py
4 4 from django.contrib.auth import authenticate 5 5 from django.db.models import Q 6 6 from django.test import TestCase 7 from django.test.utils import override_settings 7 8 8 9 9 10 class AuthContextProcessorTests(TestCase): … … 22 23 def tearDown(self): 23 24 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 24 25 26 @override_settings(MIDDLEWARE_CLASSES=( 27 'django.contrib.sessions.middleware.SessionMiddleware', 28 'django.contrib.auth.middleware.AuthenticationMiddleware', 29 )) 25 30 def test_session_not_accessed(self): 26 31 """ 27 32 Tests that the session is not accessed simply by including