summaryrefslogtreecommitdiff
path: root/tests/test_client/urls.py
AgeCommit message (Collapse)Author
2023-10-31Fixed #32106 -- Preserved HTTP_HOST in test Client when following redirects.Ben Cail
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
2022-06-20Fixed #32969 -- Fixed pickling HttpResponse and subclasses.Anv3sh
2022-04-05Moved remaining SimpleTestCase.assertFormError()/assertFormsetErrors() tests ↵Mariusz Felisiak
to test_utils. This also removes redundant tests in test_client_regress. Follow up to 68144f40490b2572c8da4341742b9e387e3f6bdd.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-24Fixed #33132 -- Fixed test client handling of querystring only redirects.Jaap Roes
Regression in 1e5aa8e1c79252cc810af21294a6e945d11d37b3.
2021-06-23Fixed #32790 -- Ensured test Client handles redirects to domain indexes ↵tomhamiltonstubber
without a specified trailing slash.
2020-05-27Refs #31494 -- Added test for query strings for GET/HEAD requests when ↵Ahmad A. Hussein
following HTTP 307/308 redirects in test client.
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.
2018-12-31Updated test URL patterns to use path() and re_path().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
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.
2016-11-09Fixed #27184 -- Allowed uploading TemporaryFile with the test client.Tom Scrace
Thanks Federico Capoano for finishing the patch.
2016-06-24Refs #17209 -- Added LoginView and LogoutView class-based viewsClaude Paroz
Thanks Tim Graham for the review.
2016-04-02Fixed #26428 -- Added support for relative path redirects in assertRedirects().Tim Graham
Thanks Trac alias master for the report and review.
2015-08-11Fixed #25163 -- Fixed exception handling in nested test client requests.pscottdevos
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-18Changed RedirectView.permanent to False per deprecation timeline; refs #21587.Tim Graham
2014-11-28Corrected deprecation warnings for RedirectView; refs #21587.Berker Peksag
2014-10-28Fixed #23606 -- Implemented Client and RequestFactory trace() methods.Rigel Di Scala
Thanks KevinEtienne for the suggestion.
2014-08-12Fixed #23276 -- Deprecated passing views as strings to url().Tim Graham
2014-06-13Fixed #16087 -- Added ResolverMatch instance to test client response.Greg Chapple
Thanks mrmachine for the suggestion.
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-01-14Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn
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.
2013-09-10Fixed #20919 -- Extended assertRedirects to be able to avoid fetching ↵Juan Catalano
redirect's response. Thanks mjtamlyn for the suggestion.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-05-27Fixed #11603 - Added django.test.SimpleTestCase.assertFormsetErrorTim Graham
Thank-you Martin Green for the patch.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner