<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/requests/tests.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2023-01-07T10:41:40Z</updated>
<entry>
<title>Renamed 'requests' test package.</title>
<updated>2023-01-07T10:41:40Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2023-01-07T10:41:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=016bead6a23989adec5c7ee6948db7ce2fc5e89b'/>
<id>urn:sha1:016bead6a23989adec5c7ee6948db7ce2fc5e89b</id>
<content type='text'>
This avoids a collision when third-party database backends depend on the
Requests HTTP library.</content>
</entry>
<entry>
<title>Refs #33865 -- Improved implementation of FakePayload.</title>
<updated>2023-01-05T18:25:25Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2022-07-22T19:58:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=57f5669d23fe17d940887e1e3ce694c7366a6330'/>
<id>urn:sha1:57f5669d23fe17d940887e1e3ce694c7366a6330</id>
<content type='text'>
FakePayload is a wrapper around io.BytesIO and is expected to
masquerade as though it is a file-like object. For that reason it makes
sense that it should inherit the correct signatures from io.BytesIO
methods.

Crucially an implementation of .readline() is added which will be
necessary for this to behave more like the expected file-like objects as
LimitedStream will be changed to defer to the wrapped stream object
rather than rolling its own implementation for improved performance.

It should be safe to adjust these signatures because FakePayload is
only used internally within test client helpers, is undocumented, and
thus private.
</content>
</entry>
<entry>
<title>Refs #33865 -- Corrected signature of ExplodingBytesIO.read().</title>
<updated>2023-01-05T18:17:56Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2022-07-22T19:24:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=95182a8593f87046999fc50c4f4161843d68273c'/>
<id>urn:sha1:95182a8593f87046999fc50c4f4161843d68273c</id>
<content type='text'>
These subclasses of io.BytesIO should inherit the correct signature.
</content>
</entry>
<entry>
<title>Refs #33865 -- Made RequestsTests.test_set_encoding_clears_GET use FakePayload.</title>
<updated>2023-01-05T18:16:49Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2022-07-22T19:19:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7a1543d9f6dd3cac32f0579d8d3b9128c427f531'/>
<id>urn:sha1:7a1543d9f6dd3cac32f0579d8d3b9128c427f531</id>
<content type='text'>
The input stream, wsgi.input, must be a file-like object. The existing
implementation of LimitedStream was lax and allowed an empty string to
be passed incorrectly.

See https://wsgi.readthedocs.io/en/latest/definitions.html#envvar-wsgi.input
</content>
</entry>
<entry>
<title>Fixed #34074 -- Added headers argument to RequestFactory and Client classes.</title>
<updated>2022-11-14T09:21:51Z</updated>
<author>
<name>David Wobrock</name>
<email>david.wobrock@gmail.com</email>
</author>
<published>2022-10-09T20:33:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=67da22f08e05018ea968fcacbac9ac37ea925d85'/>
<id>urn:sha1:67da22f08e05018ea968fcacbac9ac37ea925d85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Updated documentation and comments for RFC updates.</title>
<updated>2022-11-10T12:52:17Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2022-11-04T12:33:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9bd174b9a75299dce33e673a559f2b673399b971'/>
<id>urn:sha1:9bd174b9a75299dce33e673a559f2b673399b971</id>
<content type='text'>
- Updated references to RFC 1123 to RFC 5322
  - Only partial as RFC 5322 sort of sub-references RFC 1123.
- Updated references to RFC 2388 to RFC 7578
  - Except RFC 2388 Section 5.3 which has no equivalent.
- Updated references to RFC 2396 to RFC 3986
- Updated references to RFC 2616 to RFC 9110
- Updated references to RFC 3066 to RFC 5646
- Updated references to RFC 7230 to RFC 9112
- Updated references to RFC 7231 to RFC 9110
- Updated references to RFC 7232 to RFC 9110
- Updated references to RFC 7234 to RFC 9111
- Tidied up style of text when referring to RFC documents
</content>
</entry>
<entry>
<title>Fixed #29186 -- Fixed pickling HttpRequest and subclasses.</title>
<updated>2022-09-14T11:04:34Z</updated>
<author>
<name>Anvesh Mishra</name>
<email>anveshgreat11@gmail.com</email>
</author>
<published>2022-08-09T14:15:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=6220c445c40a6a7f4d442de8bde2628346153963'/>
<id>urn:sha1:6220c445c40a6a7f4d442de8bde2628346153963</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Refactored code to strictly match 88 characters line length.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2022-02-04T07:08:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7119f40c9881666b6f9b5cf7df09ee1d21cc8344'/>
<id>urn:sha1:7119f40c9881666b6f9b5cf7df09ee1d21cc8344</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Refactored problematic code before reformatting by Black.</title>
<updated>2022-02-03T10:20:46Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2022-02-03T10:20:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=c5cd8783825b5f6384417dac5f3889b4210b7d08'/>
<id>urn:sha1:c5cd8783825b5f6384417dac5f3889b4210b7d08</id>
<content type='text'>
In these cases Black produces unexpected results, e.g.

def make_random_password(
    self,
    length=10,
    allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789',
):

or

cursor.execute("""
SELECT ...
""",
    [table name],
)</content>
</entry>
</feed>
