diff options
| author | Tim Graham <timograham@gmail.com> | 2017-09-02 19:45:09 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-22 12:51:17 -0400 |
| commit | 6e40b70bf4c6e475266a9f011269c50f29f0f14e (patch) | |
| tree | 0cb1f451d3fc2e6f9cfe055703a0d33c0833ffa2 /tests/auth_tests/test_views.py | |
| parent | 4f313e284e03a675da5fb1d25122ac9b04af5950 (diff) | |
Refs #26929 -- Removed extra_context parameter of contrib.auth.views.logout_then_login().
Per deprecation timeline.
Diffstat (limited to 'tests/auth_tests/test_views.py')
| -rw-r--r-- | tests/auth_tests/test_views.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 6549c64034..3af8de3767 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -28,7 +28,6 @@ from django.middleware.csrf import CsrfViewMiddleware, get_token from django.test import Client, TestCase, override_settings from django.test.utils import patch_logger from django.urls import NoReverseMatch, reverse, reverse_lazy -from django.utils.deprecation import RemovedInDjango21Warning from django.utils.encoding import force_text from django.utils.translation import LANGUAGE_SESSION_KEY @@ -821,10 +820,6 @@ class LogoutThenLoginTests(AuthViewsTestCase): self.confirm_logged_out() self.assertRedirects(response, '/custom/', fetch_redirect_response=False) - def test_deprecated_extra_context(self): - with self.assertRaisesMessage(RemovedInDjango21Warning, 'The unused `extra_context` parameter'): - logout_then_login(None, extra_context={}) - class LoginRedirectAuthenticatedUser(AuthViewsTestCase): dont_redirect_url = '/login/redirect_authenticated_user_default/' |
