summaryrefslogtreecommitdiff
path: root/tests/handlers/views.py
AgeCommit message (Collapse)Author
2023-02-17Fixed #34342, Refs #33735 -- Fixed test client handling of async streaming ↵Alexandre Spaeth
responses. Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-12-05Improved test coverage for django.db.transaction.Pablo
2022-02-15Refs #31407 -- Handled potential exception in test cleanup.Carlton Gibson
The test view may not be called when running the tests with --parallel=2 or greater. Catch the AttributeError for this case.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-09-09Fixed #31962 -- Made SessionMiddleware raise SessionInterrupted when session ↵Hasan Ramezani
destroyed while request is processing.
2020-04-09Fixed #31407 -- Fixed unawaited coroutine warning for Python 3.8+.Carlton Gibson
Co-authored-by: Mark Korput <dr.theman@gmail.com>
2020-04-07Fixed #31407 -- Adjusted test to avoid coroutine never awaited warning.Mark
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-11-23Fixed #29966 -- Added tests for BaseHandler's "The view didn't return an ↵Hasan Ramezani
HttpResponse object" error.
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-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-04-29Fixed #26546 -- Allowed HTTPStatus enum values for HttpResponse.status.David Evans
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.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
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.