summaryrefslogtreecommitdiff
path: root/tests/middleware_exceptions/middleware.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #31040 -- Used 402 HTTP status in middleware_exceptions tests.Mariusz Felisiak2020-03-311-5/+5
| | | | | | | | | 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
* Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin2020-03-181-0/+64
| | | | | This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
* Tested a middleware's process_template_response() returning None.Tim Graham2018-11-201-0/+5
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #26915 -- Fixed regression handling responses returned from view ↵Alex Hill2016-07-251-1/+8
| | | | middleware.
* Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware ↵Carl Meyer2016-06-171-3/+51
| | | | exception handling.
* Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner2016-05-171-1/+3
| | | | | Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
* Fixed #24877 -- Added middleware handling of response.render() errors.Sylvain Fankhauser2015-07-031-0/+8