| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-02-17 | [4.2.x] Fixed #34342, Refs #33735 -- Fixed test client handling of async ↵ | Alexandre Spaeth | |
| streaming responses. Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Backport of 52b054824e899db40ba48f908a9a00dadc56cb89 from main | |||
| 2023-02-01 | [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main | |||
| 2023-01-13 | Fixed #34240 -- Preserved headers of requests made with django.test.Client ↵ | Mariusz Felisiak | |
| in assertRedirects(). Bug in 67da22f08e05018ea968fcacbac9ac37ea925d85. | |||
| 2023-01-05 | Refs #33865 -- Improved implementation of FakePayload. | Nick Pope | |
| 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. | |||
| 2022-11-14 | Fixed #34074 -- Added headers argument to RequestFactory and Client classes. | David Wobrock | |
| 2022-11-10 | Updated documentation and comments for RFC updates. | Nick Pope | |
| - 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 | |||
| 2022-11-08 | Fixed #34063 -- Fixed reading request body with async request factory and ↵ | Scott Halgrim | |
| client. Co-authored-by: Kevan Swanberg <kevswanberg@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> | |||
| 2022-06-09 | Fixed #33755 -- Moved ASGI body-file cleanup into request class. | Jonas Lundberg | |
| 2022-03-08 | Rewrote some references to "master". | Adam Johnson | |
| Following d9a266d657f66b8c4fa068408002a4e3709ee669. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-02-03 | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | |
| 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], ) | |||
| 2022-01-07 | Fixed #28628 -- Changed \d to [0-9] in regexes where appropriate. | Ad Timmering | |
| 2021-10-18 | Refs #32956 -- Changed docs to treat the acronym HTTP phonetically. | David Smith | |
| 2021-09-24 | Fixed #33132 -- Fixed test client handling of querystring only redirects. | Jaap Roes | |
| Regression in 1e5aa8e1c79252cc810af21294a6e945d11d37b3. | |||
| 2021-07-29 | Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵ | David Smith | |
| appropriate. | |||
| 2021-07-15 | Fixed #32929 -- Fixed handling query strings in AsyncRequestFactory. | pochangl | |
| 2021-06-23 | Fixed #32790 -- Ensured test Client handles redirects to domain indexes ↵ | tomhamiltonstubber | |
| without a specified trailing slash. | |||
| 2021-02-23 | Fixed #32470 -- Fixed ResolverMatch instance on test clients when ↵ | Marc Gibbons | |
| request.urlconf is set. | |||
| 2020-11-04 | Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers. | Carlton Gibson | |
| 2020-11-03 | Fixed #32162 -- Fixed setting Content-Length header in AsyncRequestFactory. | Patrick Arminio | |
| 2020-10-27 | Fixed #32128 -- Added asgiref 3.3 compatibility. | Carlton Gibson | |
| Thread sensitive parameter is True by default from asgiref v3.3.0. Added an explicit thread_sensitive=False to previously implicit uses. | |||
| 2020-08-14 | Added missing items to django.test.client.__all__ and django.test.utils.__all__. | Mads Jensen | |
| 2020-07-30 | Bumped minimum isort version to 5.1.0. | David Smith | |
| Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable. | |||
| 2020-05-27 | Fixed #31494 -- Preserved query strings when following HTTP 307/308 ↵ | Ahmad A. Hussein | |
| redirects in test client. | |||
| 2020-05-11 | Refs #30116 -- Simplified regex match group access with Match.__getitem__(). | Jon Dufresne | |
| The method has been available since Python 3.6. The shorter syntax is also marginally faster. | |||
| 2020-03-18 | Fixed #31224 -- Added support for asynchronous views and middleware. | Andrew Godwin | |
| This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client. | |||
| 2019-11-19 | Removed unnecessary numeric indexes in format strings. | Jon Dufresne | |
| 2019-10-29 | Fixed #30899 -- Lazily compiled import time regular expressions. | Hasan Ramezani | |
| 2019-10-18 | Fixed #28337 -- Preserved extra headers of requests made with ↵ | Patrick Jenkins | |
| django.test.Client in assertRedirects(). Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com> | |||
| 2019-08-11 | Fixed #30677 -- Improved error message for urlencode() and Client when None ↵ | swatantra | |
| is passed as data. | |||
| 2019-06-17 | Fixed typos in FakePayload docstring and SimplifiedURLTests test name. | Min ho Kim | |
| 2019-06-07 | Fixed #30550 -- Fixed decoding of non-UTF-8 bytes objects in response.json(). | Jon Dufresne | |
| 2019-03-11 | Minimized try block in Client.request(). | Jon Dufresne | |
| 2019-03-10 | Refs #18807 -- Removed unused exception handler from Client.request(). | Jon Dufresne | |
| Unused since 8bd7b598b6de1be1e3f72f3a1ee62803b1c02010. | |||
| 2019-02-20 | Fixed #18707 -- Added support for the test client to return 500 responses. | Jon Dufresne | |
| 2019-01-25 | Fixed grammar in FakePayload exception message. | Jon Dufresne | |
| 2018-12-27 | Fixed #30024 -- Made urlencode() and Client raise TypeError when None is ↵ | Jon Dufresne | |
| passed as data. | |||
| 2018-09-26 | Refs #29784 -- Switched to https:// links where available. | Jon Dufresne | |
| 2018-08-25 | Fixed #29687 -- Allowed the test client to serialize list/tuple as JSON. | Dan Palmer | |
| 2018-08-15 | Fixed #29662 -- Allowed test client to accept structured suffix JSON content ↵ | Marnanel Thurman | |
| types. | |||
| 2018-07-21 | Fixed #29576 -- Corrected the test client's HTTP_COOKIE header. | Thng Kai Yuan | |
| 2018-07-09 | Fixed #29553 -- Made test client set Content-Length header to a string ↵ | Tim Graham | |
| rather than integer. | |||
| 2018-06-27 | Fixed #29520 -- Fixed test client crash when posting bytes. | Tim Graham | |
| Regression in b8a41a2872624a6d9e61308932dd81d001e31eb9. | |||
| 2018-02-12 | Refs #27795 -- Removed force_bytes() in django.test.client where possible. | Tim Graham | |
| 2018-02-06 | Fixed #29082 -- Allowed the test client to encode JSON request data. | Nick Sarbicki | |
| 2018-02-06 | Fixed #27999 -- Added test client support for HTTP 307 and 308 redirects. | Tom | |
| 2018-01-03 | Fixed #28982 -- Simplified code with and/or. | Дилян Палаузов | |
| 2017-12-11 | Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking. | Nick Pope | |
| 2017-11-28 | Fixed #28837 -- Fixed test client crash if an exception with more than one ↵ | Nicolas Delaby | |
| arg is raised. Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba. | |||
| 2017-09-06 | Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵ | Sergey Fedoseev | |
| functools.partial()/partialmethod(). | |||
