mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Refs #35530 -- Corrected deprecation message in auth.alogin().
Follow up to ceecd518b1.
This commit is contained in:
committed by
Sarah Boyce
parent
0b2493a0da
commit
b3166e1e15
@@ -79,7 +79,7 @@ class AsyncAuthTest(TestCase):
|
||||
),
|
||||
self.assertWarnsMessage(
|
||||
RemovedInDjango61Warning,
|
||||
"Fallback to request.user when user is None will be removed.",
|
||||
"Fallback to request.auser() when user is None will be removed.",
|
||||
),
|
||||
):
|
||||
await alogin(request, None)
|
||||
@@ -100,7 +100,7 @@ class AsyncAuthTest(TestCase):
|
||||
),
|
||||
self.assertWarnsMessage(
|
||||
RemovedInDjango61Warning,
|
||||
"Fallback to request.user when user is None will be removed.",
|
||||
"Fallback to request.auser() when user is None will be removed.",
|
||||
),
|
||||
):
|
||||
await alogin(request, None)
|
||||
@@ -116,7 +116,7 @@ class AsyncAuthTest(TestCase):
|
||||
request.session = await self.client.asession()
|
||||
with self.assertWarnsMessage(
|
||||
RemovedInDjango61Warning,
|
||||
"Fallback to request.user when user is None will be removed.",
|
||||
"Fallback to request.auser() when user is None will be removed.",
|
||||
):
|
||||
await alogin(request, None)
|
||||
user = await aget_user(request)
|
||||
|
||||
Reference in New Issue
Block a user