mirror of
https://github.com/django/django.git
synced 2025-11-19 19:24:46 +00:00
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
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:
parent
0b2493a0da
commit
b3166e1e15
4 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue