Refs #35530 -- Corrected deprecation message in auth.alogin().
Some checks are pending
Docs / spelling (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run

Follow up to ceecd518b1.
This commit is contained in:
Mariusz Felisiak 2025-08-19 20:57:32 +02:00 committed by Sarah Boyce
parent 0b2493a0da
commit b3166e1e15
4 changed files with 10 additions and 10 deletions

View file

@ -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)