summaryrefslogtreecommitdiff
path: root/django/test/client.py
AgeCommit message (Collapse)Author
2017-11-28[2.0.x] Fixed #28837 -- Fixed test client crash if an exception with more ↵Nicolas Delaby
than one arg is raised. Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba. Backport of 746caf3ef821dbf7588797cb2600fa81b9df9d1d from master
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
2016-11-09Fixed #27184 -- Allowed uploading TemporaryFile with the test client.Tom Scrace
Thanks Federico Capoano for finishing the patch.
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-08-25Replaced property() usage with decorator in several places.Berker Peksag
2016-08-06Fixed #27027 -- Restored Client.force_login() defaulting to the first auth ↵Ben Demboski
backend.
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-05-03Fixed #26567 -- Updated references to obsolete RFC2616.Vasiliy Faronov
Didn't touch comments where it wasn't obvious that the code adhered to the newer standard.
2016-04-29Refs #26428 -- Added support for relative path redirects to the test client.Tim Graham
Thanks iktyrrell for the patch.
2016-04-25Fixed #26052 -- Moved conditional_content_removal() processing to the test ↵Tim Graham
client.
2016-04-04Fixed #25699 -- Allowed using the test client if 'django.contrib.sessions' ↵Sergey Kolosov
isn't in INSTALLED_APPS.
2016-03-23Fixed #24987 -- Allowed inactive users to login with the test client.Alexander Gaevsky
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2016-01-07Fixed #24855 -- Allowed using contrib.auth.login() without credentials.Paulo Poiati
Added an optional `backend` argument to login().
2016-01-05Replaced dict.setdefault() usage to avoid unnecessary object instantiations.Benjamin Bach
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-09-19Fixed #25424 -- Use force_str for test client URLs.Travis Jensen
urlparse() fails with an AttributeError ("'__proxy__' object has no attribute 'decode'") if reverse_lazy is used to look up the URL (this is exactly the same problem that caused ticket #18776). The solution is to use force_str() on the path before handing it to urlparse().
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-11Fixed #25163 -- Fixed exception handling in nested test client requests.pscottdevos
2015-07-01Fixed #20916 -- Added Client.force_login() to bypass authentication.Jon Dufresne
2015-05-25Fixed #24773 -- Added a json() method on test client responses.Andy McKay
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-04Fixed #23911 -- Added support for buffer file uploads in the test clientThomas Tanner
2014-11-25Fixed #23682 -- Enhanced circular redirects detection in tests.wrwrwr
When the test client detects a redirect to a URL seen in the currently followed chain it will now raise a RedirectCycleError instead of just returning the first repeated response. It will also complain when a single chain of redirects is longer than 20, as this often means a redirect loop with varying URLs, and even if it's not actually one, such long chains are likely to be treated as loops by browsers. Thanks Preston Timmons, Berker Peksag, and Tim Graham for reviews.
2014-10-28Fixed #23606 -- Implemented Client and RequestFactory trace() methods.Rigel Di Scala
Thanks KevinEtienne for the suggestion.
2014-10-21Fixed #21740 -- Allowed test client data to be an empty stringClaude Paroz
This fixes a regression introduced by 2a31d00933. Thanks tony-zhu for the report.
2014-10-16Fixed #19508 -- Implemented uri_to_iri as per RFC.Anubhav Joshi
Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz for the review.
2014-08-29Fixed #21483 -- Added WSGI environ to kwargs sent to request_started signal.Joshua "jag" Ginsberg
2014-06-13Fixed #22771 -- Fixed test.Client.logout when using custom auth backend.Xavier Fernandez
2014-06-13Fixed #16087 -- Added ResolverMatch instance to test client response.Greg Chapple
Thanks mrmachine for the suggestion.