summaryrefslogtreecommitdiff
path: root/tests/test_client
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /tests/test_client
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff)
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'tests/test_client')
-rw-r--r--tests/test_client/tests.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py
index 652563d269..d1d329aff9 100644
--- a/tests/test_client/tests.py
+++ b/tests/test_client/tests.py
@@ -331,7 +331,9 @@ class ClientTest(TestCase):
self.assertEqual(response.request["PATH_INFO"], "/accounts/login/")
def test_follow_relative_redirect_no_trailing_slash(self):
- "A URL with a relative redirect with no trailing slash can be followed."
+ """
+ A URL with a relative redirect with no trailing slash can be followed.
+ """
response = self.client.get("/accounts/no_trailing_slash", follow=True)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.request["PATH_INFO"], "/accounts/login/")
@@ -681,7 +683,9 @@ class ClientTest(TestCase):
]
)
def test_view_with_inactive_force_login(self):
- "Request a page that is protected with @login, but use an inactive login"
+ """
+ Request a page that is protected with @login, but use an inactive login
+ """
# Get the page without logging in. Should result in 302.
response = self.client.get("/login_protected_view/")