From ece4d24f8e494129c098868fa792400937941fab Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 9 May 2016 13:13:55 -0400 Subject: Refs #26601 -- Deprecated old-style middleware. --- tests/auth_tests/test_remote_user.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auth_tests/test_remote_user.py') diff --git a/tests/auth_tests/test_remote_user.py b/tests/auth_tests/test_remote_user.py index 1cb7666a49..2b5bf32d74 100644 --- a/tests/auth_tests/test_remote_user.py +++ b/tests/auth_tests/test_remote_user.py @@ -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): -- cgit v1.3