summaryrefslogtreecommitdiff
path: root/tests/async
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2025-08-19 20:57:32 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-08-22 16:15:42 +0200
commit9c9ed6fd7a8399113a18b979c8cd6f04cfbfa30b (patch)
tree6f04df90db78c51a7238082cec8666e87cecb964 /tests/async
parent98972b53aabbca8b7ce74b462d00a6a2c2d26287 (diff)
[5.2.x] Refs #35530 -- Corrected deprecation message in auth.alogin().
Follow up to ceecd518b19044181a3598c55ebed7c2545963cc. Backport of b3166e1e15824aedb7a609dfda18ef36ea023d06 from main.
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/test_async_auth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/async/test_async_auth.py b/tests/async/test_async_auth.py
index 3d5a6b678d..f013084b6c 100644
--- a/tests/async/test_async_auth.py
+++ b/tests/async/test_async_auth.py
@@ -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)