summaryrefslogtreecommitdiff
path: root/tests/test_client/views.py
Commit message (Collapse)AuthorAgeFilesLines
* Updated documentation and comments for RFC updates.Nick Pope2022-11-101-2/+1
| | | | | | | | | | | | | | | - 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
* Fixed #34063 -- Fixed reading request body with async request factory and ↵Scott Halgrim2022-11-081-0/+2
| | | | | | | client. Co-authored-by: Kevan Swanberg <kevswanberg@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #32969 -- Fixed pickling HttpResponse and subclasses.Anv3sh2022-06-201-0/+5
|
* Moved remaining SimpleTestCase.assertFormError()/assertFormsetErrors() tests ↵Mariusz Felisiak2022-04-051-43/+0
| | | | | | | to test_utils. This also removes redundant tests in test_client_regress. Follow up to 68144f40490b2572c8da4341742b9e387e3f6bdd.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-112/+149
|
* Fixed #33132 -- Fixed test client handling of querystring only redirects.Jaap Roes2021-09-241-0/+15
| | | | Regression in 1e5aa8e1c79252cc810af21294a6e945d11d37b3.
* Fixed #32790 -- Ensured test Client handles redirects to domain indexes ↵tomhamiltonstubber2021-06-231-0/+16
| | | | without a specified trailing slash.
* Simplifed formset iteration using enumerate().Jon Dufresne2020-10-261-2/+1
|
* Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick2020-09-141-1/+1
|
* Refs #31494 -- Added test for query strings for GET/HEAD requests when ↵Ahmad A. Hussein2020-05-271-0/+8
| | | | following HTTP 307/308 redirects in test client.
* Changed django.forms.ValidationError imports to ↵François Freitag2020-04-281-1/+2
| | | | | | django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin2020-03-181-0/+4
| | | | | This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
* Fixed #29687 -- Allowed the test client to serialize list/tuple as JSON.Dan Palmer2018-08-251-2/+2
|
* Added a test for Client.generic() data coercion.Tim Graham2018-02-121-1/+4
| | | | | The smart_str() call (now force_bytes()) added in e73838b6ddcc7b37c03f9eee04fa6e6a283fedb3 is otherwise untested.
* Fixed #29082 -- Allowed the test client to encode JSON request data.Nick Sarbicki2018-02-061-0/+14
|
* Fixed #27999 -- Added test client support for HTTP 307 and 308 redirects.Tom2018-02-061-0/+24
|
* Fixed #28837 -- Fixed test client crash if an exception with more than one ↵Nicolas Delaby2017-11-281-0/+9
| | | | | | | | arg is raised. Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
* Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne2017-05-271-1/+1
| | | iter(dict) is equivalent to iter(dict.keys()).
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-1/+1
| | | | Thanks Tim Graham for the review.
* Fixed E305 flake8 warnings.Ramin Farajpour Cami2016-11-141-0/+5
|
* Decorated a few functions.Tim Graham2016-11-141-5/+2
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-1/+1
|
* Fixed #27184 -- Allowed uploading TemporaryFile with the test client.Tom Scrace2016-11-091-0/+5
| | | | Thanks Federico Capoano for finishing the patch.
* Refs #25969 -- Replaced usage of render_to_response() with render() in tests.Tim Graham2015-12-231-7/+5
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-2/+6
|
* Fixed #25163 -- Fixed exception handling in nested test client requests.pscottdevos2015-08-111-0/+11
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+3
|
* Fixed #23606 -- Implemented Client and RequestFactory trace() methods.Rigel Di Scala2014-10-281-1/+29
| | | | Thanks KevinEtienne for the suggestion.
* Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn2014-01-141-2/+2
| | | | | | | | | | | | | This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
* Fixing E302 ErrorsJason Myers2013-11-021-0/+22
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21341 -- Eased https requests with the test clientUnai Zalakain2013-11-021-0/+1
| | | | | | | All request methods of ``django.test.client.Client`` receive a ``secure`` argument that defaults to ``False`` indicating whether or not to make the request through https. Thanks Aymeric Augustin for the review.
* Fixed all the E203 violationsAlex Gaynor2013-10-261-2/+2
|
* Fix all violators of E231Alex Gaynor2013-10-261-1/+1
|
* Fixed #20919 -- Extended assertRedirects to be able to avoid fetching ↵Juan Catalano2013-09-101-0/+3
| | | | | | redirect's response. Thanks mjtamlyn for the suggestion.
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-4/+1
|
* Fixed #11603 - Added django.test.SimpleTestCase.assertFormsetErrorTim Graham2013-05-271-1/+45
| | | | Thank-you Martin Green for the patch.
* Removed mentions of modeltests.Ramiro Morales2013-03-031-3/+3
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+218