summaryrefslogtreecommitdiff
path: root/django/test/client.py
AgeCommit message (Collapse)Author
2020-11-04Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers.Carlton Gibson
2020-11-03Fixed #32162 -- Fixed setting Content-Length header in AsyncRequestFactory.Patrick Arminio
2020-10-27Fixed #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-14Added missing items to django.test.client.__all__ and django.test.utils.__all__.Mads Jensen
2020-07-30Bumped 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-27Fixed #31494 -- Preserved query strings when following HTTP 307/308 ↵Ahmad A. Hussein
redirects in test client.
2020-05-11Refs #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-18Fixed #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-19Removed unnecessary numeric indexes in format strings.Jon Dufresne
2019-10-29Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani
2019-10-18Fixed #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-11Fixed #30677 -- Improved error message for urlencode() and Client when None ↵swatantra
is passed as data.
2019-06-17Fixed typos in FakePayload docstring and SimplifiedURLTests test name.Min ho Kim
2019-06-07Fixed #30550 -- Fixed decoding of non-UTF-8 bytes objects in response.json().Jon Dufresne
2019-03-11Minimized try block in Client.request().Jon Dufresne
2019-03-10Refs #18807 -- Removed unused exception handler from Client.request().Jon Dufresne
Unused since 8bd7b598b6de1be1e3f72f3a1ee62803b1c02010.
2019-02-20Fixed #18707 -- Added support for the test client to return 500 responses.Jon Dufresne
2019-01-25Fixed grammar in FakePayload exception message.Jon Dufresne
2018-12-27Fixed #30024 -- Made urlencode() and Client raise TypeError when None is ↵Jon Dufresne
passed as data.
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-08-25Fixed #29687 -- Allowed the test client to serialize list/tuple as JSON.Dan Palmer
2018-08-15Fixed #29662 -- Allowed test client to accept structured suffix JSON content ↵Marnanel Thurman
types.
2018-07-21Fixed #29576 -- Corrected the test client's HTTP_COOKIE header.Thng Kai Yuan
2018-07-09Fixed #29553 -- Made test client set Content-Length header to a string ↵Tim Graham
rather than integer.
2018-06-27Fixed #29520 -- Fixed test client crash when posting bytes.Tim Graham
Regression in b8a41a2872624a6d9e61308932dd81d001e31eb9.
2018-02-12Refs #27795 -- Removed force_bytes() in django.test.client where possible.Tim Graham
2018-02-06Fixed #29082 -- Allowed the test client to encode JSON request data.Nick Sarbicki
2018-02-06Fixed #27999 -- Added test client support for HTTP 307 and 308 redirects.Tom
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-11-28Fixed #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-06Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev
functools.partial()/partialmethod().
2017-05-09Fixed #28081 -- Stopped setting Content-Length=0 in ↵João Silva
conditional_content_removal() per RFC 7230.
2017-03-07Refs #27622 -- Fixed a regression in JSON content-type detectionClaude Paroz
A JSON Content-Type can contain further content, like charset for example.
2017-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2017-02-23Refs #23919 -- Used yield from.Vytis Banaitis
2017-02-09Fixed #26005 -- Fixed some percent decoding cases in uri_to_iri().Chronial
2017-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-22Refs #23919 -- Replaced six.reraise by raiseClaude Paroz
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-12-29Fixed #27622 -- Allowed test client to accept vendor tree JSON content types.Anton Samarchyan
2016-12-01Fixed #27542 -- Made Client.force_login() skip auth backends without get_user().Anton Samarchyan
2016-11-21Fixed #27516 -- Made test client's response.json() cache the parsed JSON.Adam Chainz