summaryrefslogtreecommitdiff
path: root/tests/handlers
AgeCommit message (Collapse)Author
2019-01-03Fixed #30070, CVE-2019-3498 -- Fixed content spoofing possiblity in the ↵Tom Hacohen
default 404 page. Co-Authored-By: Tim Graham <timograham@gmail.com>
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-11-23Fixed #29966 -- Added tests for BaseHandler's "The view didn't return an ↵Hasan Ramezani
HttpResponse object" error.
2018-05-27Removed obsolete BaseHandler attributes.Daniel Hepper
Unused since d334f46b7a080fd3eb720141c19b37b10704a352.
2017-09-25Fixed #27857 -- Dropped support for Python 3.4.Tim Graham
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-02-13Fixed #27820 -- Fixed RequestDataTooBig/TooManyFieldsSent crash.amalia
2017-02-04Fixed running TransactionsPerRequestTests in isolation.Jon Dufresne
Caused by `contrib/auth/backends.py` changes in cb7bbf97a74fa7800865e3615f196ad65dc4f281.
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 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-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-08-23Fixed #26971 -- Prevented crash with non-UTF-8 incoming PATH_INFOClaude Paroz
Thanks Tim Graham and Loïc Bistuer for the reviews.
2016-06-24Refs #24829 -- Made TemplateResponse.content available sooner in exception ↵Claude Paroz
context Thanks Tim Graham for the initial patch.
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-04-29Fixed #26546 -- Allowed HTTPStatus enum values for HttpResponse.status.David Evans
2016-04-04Fixed #26452 -- Loaded middleware on server start rather than on first request.David Evans
2015-11-21Fixed #25780 -- Removed redundant status code assertions from testsAlex Morozov
2015-10-23Fixed #17133 -- Properly handled successive slashes in incoming requestsClaude Paroz
Thanks gjanee@ucop.edu for the report and Tim Graham for the review.
2015-06-17Fixed #24829 -- Allowed use of TemplateResponse in view error handlers.ana-balica
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-03-08Fixed #23173 -- Fixed incorrect stripping of SCRIPT_URLBas Peschier
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-11-22Fixed #23887 -- Returned Bad Request for multipart parsing failsClaude Paroz
Thanks Antti Häyrynen and Tim Graham for the report, and Aymeric Augustin for the review.
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-10-14Adapted invalid cookie test to all Python versionsClaude Paroz
Refs #23638. Older Python versions are less strict when parsing invalid cookie content. The test just has to ensure Django doesn't crash.
2014-10-13Fixed #23638 -- Prevented crash while parsing invalid cookie contentClaude Paroz
Thanks Philip Gatt for the report and Tim Graham for the review.
2014-08-29Fixed #21483 -- Added WSGI environ to kwargs sent to request_started signal.Joshua "jag" Ginsberg
2014-08-20Fixed flake8 warnings.Tim Graham
2014-08-19Fixed #22996 -- Prevented crash with unencoded query stringClaude Paroz
Thanks Jorge Carleitao for the report and Aymeric Augustin, Tim Graham for the reviews.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-17Removed superfluous models.py files.Aymeric Augustin
Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-09-07Fixed #20530 -- Properly decoded non-ASCII query strings on Python 3.Aymeric Augustin
Thanks mitsuhiko for the report. This commit just adds a test since the problem was fixed in 8aaca651.
2013-09-07Fixed tests introduced in previous commit on Python 2. Refs #20557.Aymeric Augustin
2013-09-07Fixed #20557 -- Properly decoded non-ASCII cookies on Python 3.Aymeric Augustin
Thanks mitsuhiko for the report. Non-ASCII values are supported. Non-ASCII keys still aren't, because the current parser mangles them. That's another bug.
2013-06-10Defined available_apps in relevant tests.Aymeric Augustin
Fixed #20483.
2013-05-25Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation.Preston Holmes
SuspiciousOperations have been differentiated into subclasses, and are now logged to a 'django.security.*' logger. SuspiciousOperations that reach django.core.handlers.base.BaseHandler will now return a 400 instead of a 500. Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft for review.
2013-05-19Changed API to disable ATOMIC_REQUESTS per view.Aymeric Augustin
A decorator is easier to apply to CBVs. Backwards compatibility isn't an issue here, except for people running on a recent clone of master. Fixed a few minor problems in the transactions docs while I was there.
2013-03-11Deprecated TransactionMiddleware and TRANSACTIONS_MANAGED.Aymeric Augustin
Replaced them with per-database options, for proper multi-db support. Also toned down the recommendation to tie transactions to HTTP requests. Thanks Jeremy for sharing his experience.
2013-02-28Implemented persistent database connections.Aymeric Augustin
Thanks Anssi Kääriäinen and Karen Tracey for their inputs.
2013-02-26Renamed some tests and removed references to modeltests/regressiontests.Florian Apolloner