diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /tests/requests_tests | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (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/requests_tests')
| -rw-r--r-- | tests/requests_tests/test_accept_header.py | 3 | ||||
| -rw-r--r-- | tests/requests_tests/tests.py | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/requests_tests/test_accept_header.py b/tests/requests_tests/test_accept_header.py index f6febc937a..2699e7a390 100644 --- a/tests/requests_tests/test_accept_header.py +++ b/tests/requests_tests/test_accept_header.py @@ -346,7 +346,8 @@ class AcceptHeaderTests(TestCase): def test_quality_for_media_type_rfc9110(self): """ - Taken from https://www.rfc-editor.org/rfc/rfc9110.html#section-12.5.1-18. + Taken from + https://www.rfc-editor.org/rfc/rfc9110.html#section-12.5.1-18. """ request = HttpRequest() request.META["HTTP_ACCEPT"] = ( diff --git a/tests/requests_tests/tests.py b/tests/requests_tests/tests.py index e4540de6ee..7e615617d7 100644 --- a/tests/requests_tests/tests.py +++ b/tests/requests_tests/tests.py @@ -424,9 +424,9 @@ class RequestsTests(SimpleTestCase): """ Reading body after parsing multipart/form-data is not allowed """ - # Because multipart is used for large amounts of data i.e. file uploads, - # we don't want the data held in memory twice, and we don't want to - # silence the error by setting body = '' either. + # Because multipart is used for large amounts of data i.e. file + # uploads, we don't want the data held in memory twice, and we don't + # want to silence the error by setting body = '' either. payload = FakePayload( "\r\n".join( [ @@ -881,7 +881,8 @@ class RequestsTests(SimpleTestCase): def test_POST_after_body_read_and_stream_read_multipart(self): """ POST should be populated even if body is read first, and then - the stream is read second. Using multipart/form-data instead of urlencoded. + the stream is read second. Using multipart/form-data instead of + urlencoded. """ payload = FakePayload( "\r\n".join( |
