summaryrefslogtreecommitdiff
path: root/tests/deprecation
Commit message (Collapse)AuthorAgeFilesLines
* Refs #32800 -- Removed CSRF_COOKIE_MASKED transitional setting per ↵Mariusz Felisiak2023-01-171-30/+0
| | | | deprecation timeline.
* Refs #32873 -- Removed settings.USE_L10N per deprecation timeline.Mariusz Felisiak2023-01-171-43/+0
|
* Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Jarosław Wygoda2023-01-121-0/+165
|
* Refs #34118 -- Adopted asgiref coroutine detection shims.Carlton Gibson2022-12-201-4/+3
| | | Thanks to Mariusz Felisiak for review.
* Fixed #33518 -- Added RemovedAfterNextVersionWarning.saeedblanchette2022-02-211-0/+6
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-074-42/+54
|
* Fixed #32800 -- Changed CsrfViewMiddleware not to mask the CSRF secret.Chris Jerdonek2021-11-291-0/+30
| | | | | | | | | This also adds CSRF_COOKIE_MASKED transitional setting helpful in migrating multiple instance of the same project to Django 4.1+. Thanks Florian Apolloner and Shai Berger for reviews. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz2021-09-141-0/+43
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Refs #24121 -- Added __repr__() to MiddlewareMixin and subclasses.Jonny Park2021-03-101-0/+27
|
* Refs #31842 -- Removed DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak2021-01-141-55/+0
| | | | Per deprecation timeline.
* Refs #26601 -- Made get_response argument required and don't accept None in ↵Mariusz Felisiak2021-01-141-12/+3
| | | | | | middleware classes. Per deprecation timeline.
* Refs #31928 -- Added various middlewares tests for detecting when ↵Kevin Michel2020-08-281-6/+1
| | | | get_response is coroutine.
* Fixed #31928 -- Fixed detecting an async get_response in various middlewares.Kevin Michel2020-08-281-0/+24
| | | | | | | | | | | SecurityMiddleware and the three cache middlewares were not calling super().__init__() during their initialization or calling the required MiddlewareMixin._async_check() method. This made the middlewares not properly present as coroutine and confused the middleware chain when used in a fully async context. Thanks Kordian Kowalski for the report.
* Refs #26601 -- Added various middlewares tests for deprecation of passing ↵Kevin Michel2020-08-281-19/+43
| | | | None as get_response.
* Fixed #31905 -- Made MiddlewareMixin call ↵Michael Galler2020-08-261-1/+42
| | | | | | process_request()/process_response() with thread sensitive. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #31842 -- Added DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak2020-08-041-0/+55
| | | | | | | | | It's a transitional setting helpful in migrating multiple instance of the same project to Django 3.1+. Thanks Markus Holtermann for the report and review, Florian Apolloner for the implementation idea and review, and Carlton Gibson for the review.
* Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz2020-02-181-0/+39
| | | | | | | | | 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>
* Silenced warnings in deprecation tests.Jon Dufresne2018-07-111-11/+19
|
* Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert2018-05-091-87/+66
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-4/+4
|
* Refs #23919 -- Removed reset_warning_registry() workaround for Python < 3.4.2.Tim Graham2017-01-191-2/+0
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-2/+2
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-8/+7
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-12/+6
|
* Fixed #25466 -- Added backwards compatibility aliases for LoaderOrigin and ↵Tim Graham2015-09-291-1/+16
| | | | | | StringOrigin. Thanks Simon Charette for the DeprecationInstanceCheck class.
* Refs #21977 -- Removed SimpleTestCase.urls per deprecation timeline.Tim Graham2015-09-231-27/+0
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-1/+1
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Removed deprecated Chinese language codes; refs #18149.Tim Graham2015-01-171-20/+2
|
* Removed request.REQUEST per deprecation timeline; refs #18659.Tim Graham2015-01-171-21/+1
|
* Removed django.utils.functional.memoize per deprecation timeline.Tim Graham2015-01-171-15/+0
| | | | refs #21351.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-0/+1
|
* Refs #23947 -- Worked around a bug in Python that prevents deprecation ↵Diego Guimarães2014-12-061-0/+2
| | | | warnings from appearing in tests.
* Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.pyTim Graham2014-11-291-0/+1
|
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-0/+26
|
* Avoided leaking warning filters.Aymeric Augustin2014-03-091-4/+2
|
* Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz2014-03-081-0/+1
| | | | | Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* 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 #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma2013-11-111-0/+16
| | | | | | | | | | Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
* Fixed #18149 -- Changed language codes for ChineseBouke Haarsma2013-11-041-2/+21
| | | | | | | Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional). Added support for browsers that still send the deprecated language codes. Thanks to Olli Wang for the report.
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+0
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+11
|
* Removed unused local variables in tests.Tim Graham2013-10-191-1/+1
|
* Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma2013-10-171-1/+21
| | | | Thanks Aymeric Augustin for the suggestion.
* Import test case classes from their public API module.Ramiro Morales2013-08-201-1/+1
|
* Advanced deprecation warnings for Django 1.7.Aymeric Augustin2013-06-291-1/+1
|
* Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer2013-03-083-0/+158
return a QuerySet.