summaryrefslogtreecommitdiff
path: root/tests/view_tests
Commit message (Collapse)AuthorAgeFilesLines
* Reverted "Refs #31949 -- Enabled @sensitive_variables to work with async ↵Mariusz Felisiak2023-03-302-57/+4
| | | | | | functions." This reverts commits 23cbed21876bf02f4600c0dac3a5277db5b2afbb and 203a15cadbf8d03b51df1b28d89b2e7ab4264973.
* Refs #31949 -- Enabled @sensitive_variables to work with async functions.Jon Janzen2023-03-222-4/+57
|
* Refs #34342 -- Added tests for handling sync streaming responses by test client.Alexandre Spaeth2023-02-171-2/+3
| | | | Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #34343 -- Moved built-in templates to filesystem.Nick Pope2023-02-173-1/+43
|
* 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 #34074 -- Used headers argument for RequestFactory and Client in docs ↵David Wobrock2023-01-044-28/+39
| | | | and tests.
* Fixed #33701 -- Added fine-grained error locations to the technical 500 ↵Giebisch2022-11-291-0/+73
| | | | debug page.
* Fixed #33747 -- Added exception notes to the technical 500 debug page.Giebisch2022-11-251-1/+36
|
* Updated documentation and comments for RFC updates.Nick Pope2022-11-101-2/+2
| | | | | | | | | | | | | | | - Updated references to RFC 1123 to RFC 5322 - Only partial as RFC 5322 sort of sub-references RFC 1123. - Updated references to RFC 2388 to RFC 7578 - Except RFC 2388 Section 5.3 which has no equivalent. - Updated references to RFC 2396 to RFC 3986 - Updated references to RFC 2616 to RFC 9110 - Updated references to RFC 3066 to RFC 5646 - Updated references to RFC 7230 to RFC 9112 - Updated references to RFC 7231 to RFC 9110 - Updated references to RFC 7232 to RFC 9110 - Updated references to RFC 7234 to RFC 9111 - Tidied up style of text when referring to RFC documents
* Fixed #33606 -- Cleansed sessionid cookie in error reports.Tobias Bengfort2022-10-261-0/+6
| | | | Co-authored-by: Simon Charette <charette.s@gmail.com>
* Fixed #33863 -- Fixed JavaScriptCatalog with more than 1 level of fallback ↵Claude Paroz2022-07-256-0/+62
| | | | | | translations. Co-authored-by: Carlos Mermingas <cmermingas@gmail.com>
* Fixed #33571 -- Fixed static serving views crash when If-Modified-Since is ↵Collin Anderson2022-03-111-0/+3
| | | | | empty. Regression in d6aff369ad33457ae2355b5b210faf1c4890ff35.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-075-23/+36
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0713-1002/+1292
|
* Refs #33476 -- Changed quotation marks in ↵Mariusz Felisiak2022-02-072-2/+3
| | | | | | DebugViewTests.test_template_exceptions(). This prevents a failure after reformatting the code with Black.
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-8/+4
| | | | | | | | | | | | | | | | | 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], )
* Fixed #30360 -- Added support for secret key rotation.tschilling2022-02-011-0/+2
| | | | | | | | 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>
* Fixed #33461 -- Escaped template errors in the technical 500 debug page.Keryn Knight2022-01-283-2/+40
|
* Fixed #33396 -- Added view name to technical 500 debug page.Hrushikesh Vaidya2022-01-133-0/+43
|
* Fixed #33425 -- Fixed view name for CBVs on technical 404 debug page.Keryn Knight2022-01-081-3/+11
| | | | Regression in 0c0b87725bbcffca3bc3a7a2c649995695a5ae3b.
* Fixed #33211 -- Updated tests for Selenium 4.0.0.Carlton Gibson2021-10-211-12/+12
| | | | | Replaced deprecated `find_element[s]_by_*()` usages, in favour of `find_element[s]()` with an explicit `By`.
* Refs #32956 -- Capitalized HTTP/HTTPS in comments, docs, and docstrings.David Smith2021-10-201-1/+1
|
* Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz2021-09-142-4/+4
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith2021-07-291-1/+1
| | | | appropriate.
* Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using ↵Mateo Radman2021-06-251-1/+15
| | | | "assert" in various code.
* Fixed #32698 -- Moved HttpRequest.get_raw_uri() to ↵Hasan Ramezani2021-04-301-0/+14
| | | | ExceptionReporter._get_raw_insecure_uri().
* Fixed capitalization of "ECMAScript" and "JavaScript".Nick Pope2021-04-291-2/+2
|
* Refs 32637 -- Made technical 404 debug page display exception message when ↵Mariusz Felisiak2021-04-271-0/+10
| | | | | URL is resolved. Follow up to 3b8527e32b665df91622649550813bb1ec9a9251.
* Fixed #32637 -- Restored exception message on technical 404 debug page.Mariusz Felisiak2021-04-131-0/+6
| | | Thanks Atul Varma for the report.
* Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann2021-02-061-1/+1
| | | | docs where appropriate.
* Fixed #32345 -- Fixed preserving encoded query strings in set_language() view.Sandro Covo2021-01-291-2/+4
| | | | Thanks Johannes Maron for the review.
* Refs #15902 -- Stopped set_language() storing user's language in the session.Mariusz Felisiak2021-01-141-36/+2
| | | | Per deprecation timeline.
* Fixed #32053 -- Fixed accessibility issues on the 'Congrats' page.Thibaud Colas2020-11-201-1/+1
| | | | | | | | | | | | | | | | | | - 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.
* Refs #31672 -- Made technical 500 debug page include exceptions without ↵Hasan Ramezani2020-11-101-3/+49
| | | | tracebacks.
* Made small readability improvements.Martin Thoma2020-10-281-1/+1
|
* Refs #25780 -- Removed redundant status code assertions from tests.Jon Dufresne2020-10-281-1/+0
|
* Fixed #32105 -- Added template paths as ExceptionReporter class attributes.Aarni Koskela2020-10-154-0/+25
| | | | | | | | 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.
* Fixed #31674 -- Fixed displaying traceback in technical 500 debug page.Hasan Ramezani2020-10-121-0/+28
| | | | | | | 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.
* Fixed #32087 -- Made technical 500 debug page use HTTPS for sharing traceback.nik258heda2020-10-121-0/+13
|
* Fixed typo in tests/view_tests/tests/test_debug.py docstring.Thibaud Colas2020-10-011-3/+2
|
* Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick2020-09-144-7/+7
|
* Fixed #31962 -- Made SessionMiddleware raise SessionInterrupted when session ↵Hasan Ramezani2020-09-093-1/+28
| | | | destroyed while request is processing.
* Fixed #31791 -- Made technical 404 debug page display the tried URL patterns ↵Jon Dufresne2020-09-071-3/+27
| | | | for Http404.
* Fixed #31942 -- Made settings cleansing work with dictionary settings with ↵Jeremy Lainé2020-08-261-0/+13
| | | | non-string keys.
* Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.Tom Forbes2020-07-131-0/+20
|
* Refs #30400 -- Improved typography in debug and csrf templates.Jon Dufresne2020-07-081-3/+3
|
* Fixed #31675 -- Added warning to ExceptionReporter when exception chain has ↵Hasan Ramezani2020-06-101-3/+8
| | | | a cycle.
* Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne2020-05-111-1/+1
| | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster.
* Capitalized Unicode in docs, strings, and comments.Jon Dufresne2020-04-201-1/+1
|
* Removed unused __str__() methods in tests models.Author: Mads Jensen2020-04-151-6/+0
| | | | | Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>