summaryrefslogtreecommitdiff
path: root/tests/middleware_exceptions
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-1/+0
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Refs #34118 -- Adopted asgiref coroutine detection shims.Carlton Gibson2022-12-201-4/+3
| | | Thanks to Mariusz Felisiak for review.
* Fixed #33495 -- Improved debug logging message about adapting handlers for ↵Aaron Chong2022-02-091-7/+6
| | | | | | middlewares. It's the wrapped handler that's adapted to the wrapping middleware.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+2
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-074-186/+255
|
* Fixed #32614 -- Fixed MiddlewareSyncAsyncTests tests with asgiref 3.3.2+.Mariusz Felisiak2021-04-061-0/+5
|
* Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10.François Freitag2021-03-021-3/+2
|
* Fixed #32299 -- Prevented mutating handlers when processing middlewares ↵Mariusz Felisiak2020-12-291-0/+19
| | | | | marking as unused in an async context. Thanks Hubert Bielenia for the report.
* Refs #31040 -- Used 402 HTTP status in middleware_exceptions tests.Mariusz Felisiak2020-03-312-23/+23
| | | | | | | | | 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-184-0/+236
| | | | | This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
* Fixed MiddlewareNotUsedTests.test_do_not_log_when_debug_is_false().Mariusz Felisiak2020-03-121-1/+4
| | | | | This test didn't test anything without a middleware that raises an exception.
* Completed test coverage for BaseHandler.process_exception_by_middleware().Mariusz Felisiak2020-03-121-0/+9
|
* Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz2020-02-181-3/+4
| | | | | | | | | classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-311-6/+6
|
* Removed unused views in middleware_exceptions tests.Tim Graham2018-11-212-18/+1
| | | | Unused since d334f46b7a080fd3eb720141c19b37b10704a352.
* Tested a middleware's process_template_response() returning None.Tim Graham2018-11-202-0/+14
|
* Replaced django.test.utils.patch_logger() with assertLogs().Claude Paroz2018-05-071-10/+7
| | | | Thanks Tim Graham for the review.
* Imported django.http classes instead of django.http.Asif Saifuddin Auvi2017-02-271-4/+4
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-192-3/+3
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Refs #26601 -- Removed support for old-style middleware using ↵Tim Graham2017-01-171-908/+0
| | | | settings.MIDDLEWARE_CLASSES.
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-46/+46
|
* Fixed #26915 -- Fixed regression handling responses returned from view ↵Alex Hill2016-07-254-4/+78
| | | | middleware.
* Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware ↵Carl Meyer2016-06-173-88/+188
| | | | exception handling.
* Moved old-middleware tests in preparation for adding new tests.Carl Meyer2016-06-171-4/+4
|
* Improved debugging of failed middleware_exceptions tests.Carl Meyer2016-06-171-5/+18
|
* Refs #26601 -- Deprecated old-style middleware.Tim Graham2016-05-171-2/+4
|
* Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner2016-05-172-16/+27
| | | | | Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
* Refs #26022 -- Used context manager version of assertRaises in tests.Hasan2016-01-291-1/+2
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-21/+39
|
* Fixed #24877 -- Added middleware handling of response.render() errors.Sylvain Fankhauser2015-07-034-0/+27
|
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-4/+4
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-4/+4
|
* Accounted for multiple template engines in template responses.Aymeric Augustin2015-01-122-5/+8
|
* Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG mode.Berker Peksag2014-11-271-1/+65
|
* Fixed #6992 -- Improved error when middleware omits HttpResponse.Aymeric Augustin2014-06-071-0/+44
| | | | Thanks guettli for the report.
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-2/+2
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-10/+10
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Fixed #21912 -- Improved error message if a view returns None.Aaron France2014-02-151-4/+4
| | | | Thanks brycenesbitt for the report.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+1
|
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-0/+0
| | | | | | | 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.
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-3/+1
|
* PEP8 cleanupJason Myers2013-11-022-0/+8
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed flake8 E241Boryslav Larin2013-11-021-95/+103
|
* Removed some direct settings manipulations in tests; refs #21230.Bouke Haarsma2013-10-211-8/+5
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-5/+5
|
* Removed unused local variables in tests.Tim Graham2013-10-191-1/+1
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-4/+4
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-3/+0
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.