summaryrefslogtreecommitdiff
path: root/tests/view_tests
AgeCommit message (Collapse)Author
2022-03-11Fixed #33571 -- Fixed static serving views crash when If-Modified-Since is ↵Collin Anderson
empty. Regression in d6aff369ad33457ae2355b5b210faf1c4890ff35.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-07Refs #33476 -- Changed quotation marks in ↵Mariusz Felisiak
DebugViewTests.test_template_exceptions(). This prevents a failure after reformatting the code with Black.
2022-02-03Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
2022-02-01Fixed #30360 -- Added support for secret key rotation.tschilling
Thanks Florian Apolloner for the implementation idea. Co-authored-by: Andreas Pelme <andreas@pelme.se> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Vuyisile Ndlovu <terrameijar@gmail.com>
2022-01-28Fixed #33461 -- Escaped template errors in the technical 500 debug page.Keryn Knight
2022-01-13Fixed #33396 -- Added view name to technical 500 debug page.Hrushikesh Vaidya
2022-01-08Fixed #33425 -- Fixed view name for CBVs on technical 404 debug page.Keryn Knight
Regression in 0c0b87725bbcffca3bc3a7a2c649995695a5ae3b.
2021-10-21Fixed #33211 -- Updated tests for Selenium 4.0.0.Carlton Gibson
Replaced deprecated `find_element[s]_by_*()` usages, in favour of `find_element[s]()` with an explicit `By`.
2021-10-20Refs #32956 -- Capitalized HTTP/HTTPS in comments, docs, and docstrings.David Smith
2021-09-14Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-06-25Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using ↵Mateo Radman
"assert" in various code.
2021-04-30Fixed #32698 -- Moved HttpRequest.get_raw_uri() to ↵Hasan Ramezani
ExceptionReporter._get_raw_insecure_uri().
2021-04-29Fixed capitalization of "ECMAScript" and "JavaScript".Nick Pope
2021-04-27Refs 32637 -- Made technical 404 debug page display exception message when ↵Mariusz Felisiak
URL is resolved. Follow up to 3b8527e32b665df91622649550813bb1ec9a9251.
2021-04-13Fixed #32637 -- Restored exception message on technical 404 debug page.Mariusz Felisiak
Thanks Atul Varma for the report.
2021-02-06Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann
docs where appropriate.
2021-01-29Fixed #32345 -- Fixed preserving encoded query strings in set_language() view.Sandro Covo
Thanks Johannes Maron for the review.
2021-01-14Refs #15902 -- Stopped set_language() storing user's language in the session.Mariusz Felisiak
Per deprecation timeline.
2020-11-20Fixed #32053 -- Fixed accessibility issues on the 'Congrats' page.Thibaud Colas
- Add lang attribute. - Use the same text for the page’s main heading, and title. - Add underlines for all links in copy. - Stop using h2 for link to the Django page. - Use h1 for the main heading. - Remove useless type attribute on style element. - Remove grey text that fails contrast checks. - Use a shade of grey that passes AAA contrast requirements. - Stop using h4 for footer links. - Add full stop in block-level links so VoiceOver correctly pauses between runs of text. - Hide main artwork for screen reader users. - Update SVG icons markup to be screen-reader friendly. - Switch options to be block-level links. - Remove unused markup.
2020-11-10Refs #31672 -- Made technical 500 debug page include exceptions without ↵Hasan Ramezani
tracebacks.
2020-10-28Made small readability improvements.Martin Thoma
2020-10-28Refs #25780 -- Removed redundant status code assertions from tests.Jon Dufresne
2020-10-15Fixed #32105 -- Added template paths as ExceptionReporter class attributes.Aarni Koskela
This allows replacement of the debugging templates without having to copy-paste the `get_traceback_html` and `get_traceback_text` functions into a subclass. Thanks to Nick Pope for review.
2020-10-12Fixed #31674 -- Fixed displaying traceback in technical 500 debug page.Hasan Ramezani
Previously, the technical 500 debug page didn't contain a traceback when the exception chain contained an exception without traceback. Thanks Chris Jerdonek for the report.
2020-10-12Fixed #32087 -- Made technical 500 debug page use HTTPS for sharing traceback.nik258heda
2020-10-01Fixed typo in tests/view_tests/tests/test_debug.py docstring.Thibaud Colas
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-09-09Fixed #31962 -- Made SessionMiddleware raise SessionInterrupted when session ↵Hasan Ramezani
destroyed while request is processing.
2020-09-07Fixed #31791 -- Made technical 404 debug page display the tried URL patterns ↵Jon Dufresne
for Http404.
2020-08-26Fixed #31942 -- Made settings cleansing work with dictionary settings with ↵Jeremy Lainé
non-string keys.
2020-07-13Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.Tom Forbes
2020-07-08Refs #30400 -- Improved typography in debug and csrf templates.Jon Dufresne
2020-06-10Fixed #31675 -- Added warning to ExceptionReporter when exception chain has ↵Hasan Ramezani
a cycle.
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2020-04-15Removed unused __str__() methods in tests models.Author: Mads Jensen
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2020-04-15Fixed #31451 -- Made settings cleansing work with list and tuple settings.Ichlasul Affan
2020-04-09Fixed #30779 -- Improved selection of filenames in technical 500 debug page.Daniel Hahler
2020-02-20Captured logging in DebugViewTests with assertLogs().Jon Dufresne
2020-01-27Refs #30997 -- Removed HttpRequest.is_ajax() usage.Claude Paroz
2020-01-16Fixed #30752 -- Allowed using ExceptionReporter subclasses in error reports.Pavel Lysak
2020-01-10Fixed #23004 -- Added request.META filtering to SafeExceptionReporterFilter.Carlton Gibson
Co-authored-by: Ryan Castner <castner.rr@gmail.com>
2020-01-10Refs #23004 -- Allowed exception reporter filters to customize settings ↵Carlton Gibson
filtering. Thanks to Tim Graham for the original implementation idea. Co-authored-by: Daniel Maxson <dmaxson@ccpgames.com>
2019-12-11Fixed #31080 -- Removed redundant type="text/javascript" attribute from ↵Jon Dufresne
<script> tags.
2019-12-10Fixed #31077 -- Made debug decorators raise TypeError if they're not called.Baptiste Mispelon
Django will raise an error if you forget to call the decorator.
2019-11-18Removed hardcoded pk in view_tests.tests.test_defaults.Tim Graham
2019-11-12Fixed #30405 -- Fixed source code mismatch crash in ExceptionReporter.Hasan Ramezani