summaryrefslogtreecommitdiff
path: root/tests/view_tests
AgeCommit message (Collapse)Author
2019-01-28[2.2.x] Fixed #29825 -- Fixed JS ngettext if the string is a non-plural ↵Claude Paroz
msgid in the catalog. Backport of 16454ac35f6a24a04b23a9340b0d62c33edbc1ea from master.
2019-01-10Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette
favor of databases.
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-10-25Completed test coverage of views.defaults.bad_request().Hasan Ramezani
2018-10-23Completed test coverage of views.static.directory_name().Hasan Ramezani
2018-10-15Refs #27829 -- Added warning for settings.DEFAULT_CONTENT_TYPE usage outside ↵Jon Dufresne
of Django.
2018-07-24Fixed #24336 -- Made django.conf.urls.static() ignore all absolute URLsClaude Paroz
2018-06-22Fixed #29511 -- Added charset to JavaScriptCatalog's Content-Type header.Tim Graham
2018-05-07Captured logging in tests with self.assertLogs().Claude Paroz
2018-05-07Replaced django.test.utils.patch_logger() with assertLogs().Claude Paroz
Thanks Tim Graham for the review.
2018-02-07Refs #27795 -- Removed force_bytes/text() usage in tests.Tim Graham
2018-01-03Refs #15902 -- Made set_language() view always set the current language in a ↵Claude Paroz
cookie. The plan is to later deprecate/remove storing the language in the session.
2017-12-06Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham
2017-10-13Fixed #28708 -- Added constants to detect the Python version.Tim Graham
2017-09-20Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-05Fixed CVE-2017-12794 -- Fixed XSS possibility in traceback section of ↵Tim Graham
technical 500 debug page. This is a security fix.
2017-08-12Fixed #28485 -- Made ExceptionReporter.get_traceback_frames() include frames ↵Martin von Gagern
without source code.
2017-08-07Fixed #28457 -- Updated the design of the 'Congrats' page for new Django ↵Timothy Allen
projects. Developed by Timothy Allen and Chad Whitman of The Wharton School with shepherding from Aymeric Augustin and Collin Anderson.
2017-08-02Refs #7697 -- Tested escaping of safe strings in the technical 500 debug view.Tim Graham
Tests were omitted in the original commit: a56a226241f5808b2eaf1e4b5a155d35047b8a06.
2017-08-02Refs #7697 -- Removed unnecessary force_escape of technical 500 debug view ↵Tim Graham
"unicode hint". The test passes before and after the removal. unicode_hint will never be SafeText, so normal autoescaping is sufficient.
2017-08-02Refs #5046 -- Tested the 'unicode hint' in the technical 500 debug view.Tim Graham
2017-06-22Refs #16870 -- Doc'd that CSRF protection requires the Referer header.Flávio Juvenal
2017-06-22Cosmetic edits to tests/view_tests/tests/test_csrf.py.Tim Graham
2017-06-06Fixed #18394 -- Added error for invalid JavaScriptCatalog packagesClaude Paroz
Thanks Tim Graham for the review.
2017-06-05Fixed #28271 -- Added charset to technical_500_response() AJAX response.partizan
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-05-25Fixed #28221 -- Fixed plural fallback translations in JavaScriptCatalog viewClaude Paroz
Thanks Waldemar Kornewald for the report and initial patch.
2017-05-18Fixed validity of test django_js.po filesClaude Paroz
2017-05-08Refs #27795 -- Stopped converting integer format settings to str in JS/JSON ↵Claude Paroz
i18n views Thanks Tim Graham for the review.
2017-05-08Renamed django.views.i18n test casesClaude Paroz
2017-04-25Fixed #28122 -- Fixed crash when overriding views.static.directory_index()'s ↵Tim Graham
template.
2017-04-15Fixed #28079 -- Restored "No POST data" (rather than an empty table) in HTML ↵Tim Graham
debug page. Regression in 7b6dccc82fa5b03cf431742c0655e5ac954e228e
2017-04-12Fixed #28007 -- Moved debug templates to the filesystemClaude Paroz
Thanks Tim Graham for the review.
2017-04-12Tested template info in debug view's text tracebackClaude Paroz
2017-04-04Fixed CVE-2017-7234 -- Fixed open redirect vulnerability in ↵Tim Graham
views.static.serve(). This is a security fix.
2017-04-02Removed unused code in i18n view_testsClaude Paroz
Unused since 2b20e4148f4f54431834e6a43af6c39dc75e6362.
2017-03-17Fixed #27948 -- Removed incorrect unquote() in static serving views.Tim Graham
2017-02-17Fixed #27308 -- Fixed BytesWarnings in the test suite.Tim Graham
2017-02-16Fixed #27829 -- Deprecated settings.DEFAULT_CONTENT_TYPE.Tim Graham
2017-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-03Refs #23919 -- Removed a Python 2 code path in force_text().Tim Graham
Reverted the obsolete fix and tests for refs #12302.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-27Improved test coverage for conf.urls.static.Anton Samarchyan
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-23Replaced dict() usage with dict literals.Jon Dufresne
Literals are faster and more idiomatic.
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.