summaryrefslogtreecommitdiff
path: root/tests/test_client_regress/urls.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
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-06-07Fixed #30550 -- Fixed decoding of non-UTF-8 bytes objects in response.json().Jon Dufresne
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2017-03-09Decoupled test client encoding tests from JSON handlingClaude Paroz
Using JSON as non-UTF-8 content is controversial, and the RFC 7159 discourages it. Thanks Tim Graham for the review.
2015-05-25Fixed #24773 -- Added a json() method on test client responses.Andy McKay
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-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-04-14Fixed #22369 -- Added count parameter to assertTemplateUsedJacob R. Rothenbuhler
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-10-26Fix all violators of E231Alex Gaynor
2013-08-09Fixed #18356 -- Gave the test client signals.template_rendered call a unique ↵Bojan Mihelac
dispatch_uid This prevents the test client context from being lost when the client is used in a nested fashion.
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-04-11Fixed #20237 -- Reenabled assertContains with binary parameterClaude Paroz
Thanks Baptiste Mispelon for the review.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner