mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Refs #26601 -- Deprecated old-style middleware.
This commit is contained in:
parent
9baf692a58
commit
ece4d24f8e
13 changed files with 50 additions and 4 deletions
|
@ -6,7 +6,9 @@ from django.contrib.auth.backends import RemoteUserBackend
|
|||
from django.contrib.auth.middleware import RemoteUserMiddleware
|
||||
from django.contrib.auth.models import User
|
||||
from django.test import TestCase, modify_settings, override_settings
|
||||
from django.test.utils import ignore_warnings
|
||||
from django.utils import timezone
|
||||
from django.utils.deprecation import RemovedInDjango20Warning
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='auth_tests.urls')
|
||||
|
@ -151,6 +153,7 @@ class RemoteUserTest(TestCase):
|
|||
self.assertTrue(response.context['user'].is_anonymous)
|
||||
|
||||
|
||||
@ignore_warnings(category=RemovedInDjango20Warning)
|
||||
@override_settings(MIDDLEWARE=None)
|
||||
class RemoteUserTestMiddlewareClasses(RemoteUserTest):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue