summaryrefslogtreecommitdiff
path: root/tests/middleware_exceptions/middleware.py
AgeCommit message (Collapse)Author
2021-04-06[3.2.x] Fixed #32614 -- Fixed MiddlewareSyncAsyncTests tests with asgiref ↵Mariusz Felisiak
3.3.2+. Backport of 78fea27f690028204c03c28d821cb0c0240a7398 from main
2020-03-31Refs #31040 -- Used 402 HTTP status in middleware_exceptions tests.Mariusz Felisiak
HTTP status code 418 - "I'm a Teaport" was added to http.HTTPStatus in Python 3.9.0a5 [1] that caused failures in middleware_exceptions tests. This changes HTTP status used in middleware_exceptions tests to 402, which exists in all supported versions of Python. [1] https://docs.python.org/3.9/whatsnew/3.9.html#http
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-20Tested a middleware's process_template_response() returning None.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-07-25Fixed #26915 -- Fixed regression handling responses returned from view ↵Alex Hill
middleware.
2016-06-17Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware ↵Carl Meyer
exception handling.
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.
2015-07-03Fixed #24877 -- Added middleware handling of response.render() errors.Sylvain Fankhauser