summaryrefslogtreecommitdiff
path: root/tests/template_tests
AgeCommit message (Collapse)Author
2019-03-03[2.2.x] Reverted "Fixed relative paths imports per isort 4.3.5."Mariusz Felisiak
This reverts commit 463fe11bc8b2d068e447c5df677e7a31c2af7e03 due to restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10. Backport of b435f82939edf70674856e0e1cd63973c2e0a1d1 from master
2019-02-25[2.2.x] Fixed relative paths imports per isort 4.3.5.Mariusz Felisiak
Backport of 463fe11bc8b2d068e447c5df677e7a31c2af7e03 from master
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-11-26Used SimpleTestCase for template library tests.Simon Charette
2018-10-12Added a urlize test for wrapping characters.Tim Graham
2018-09-28Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev
2018-09-25Refs #27795 -- Removed force_bytes() usage in utils/_os.py.Jon Dufresne
2018-08-21Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵Claude Paroz
dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
2018-08-01Fixed typos in comments and docs.luz.paz
2018-07-31Fixed #29617 -- Fixed Template crash if template_string is lazy.Dražen Odobašić
Regression in 3a148f958dddd97c1379081118c30fbede6b6bc4.
2018-07-27Moved yesno filter test to its file.Hasan Ramezani
2018-05-26Fixed #29432 -- Allowed passing an integer to the slice template filter.ryabtsev
2018-05-25Fixed #29400 -- Fixed crash in custom template filters that use decorated ↵Ryan Rubin
functions. Regression in 620e9dd31a2146d70de740f96a8cb9a6db054fc7.
2018-05-10Replaced TOKEN_* constants by TokenType enums.Claude Paroz
Thanks Tim Graham for the review.
2018-05-07Captured logging in tests with self.assertLogs().Claude Paroz
2018-04-18Refs #23890 -- Removed numpy deprecation warning silencing.Tim Graham
Obsolete since numpy 1.12.0.
2018-04-04Fixed #29288 -- Made {% widthratio %} assign to as var if an exception occurs.Jirka Vejrazka
2018-03-26Increased test coverage for {% get_admin_log %} and {% static %}.Hasan Ramezani
2018-03-24Increased test coverage for various template tags.Mads Jensen
2018-03-21Increased test coverage for i18n template tags.Mads Jensen
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-02-23Fixed #29154 -- Corrected examples in pluralize docstring and added tests.Hasan Ramezani
2018-02-07Fixed #17419 -- Added json_tag template filter.Jonas Haag
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2018-01-25Fixed #29060 -- Made {% firstof %} assign '' to the asvar if all inputs are ↵Roger Gammans
false.
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2017-10-21Refs #28721 -- Added test for variations of 'inf'/'infinity' as a template ↵Levi Payne
variable names. Fixed by 9ec7d8e514e09636b0ab4bcac74b5f7a5be335a3.
2017-10-21Fixed #28730 -- Fixed loss of precision for large integer literals in templatesClaude Paroz
Thanks Fraser Nevett for the report and Tim Graham for patch edits.
2017-10-20Fixed #28662 -- Silenced join template filter error if arg isn't iterable.Mads Jensen
2017-10-18Refs #28711 -- Replaced ugettext_lazy() with gettext_lazy() in a test.Tim Graham
As per c651331b34b7c3841c126959e6e52879bc6f0834.
2017-10-18Fixed #28711 -- Fixed unordered_list template filter with lazy translations.Jonas Haag
2017-10-18Refs #23260 -- Tested nested generator input to unordered_list template filter.Jonas Haag
2017-10-05Added tests for invalid {% for %} usage and ForLoop.__repr__().Mads Jensen
2017-10-02Added tests for invalid {% autoescape %} usage.Mads Jensen
2017-09-30Completed test coverage for default template filters.Mads Jensen
2017-09-22Refs #27175 -- Removed exception silencing from the {% include %} template tag.Tim Graham
Per deprecation timeline.
2017-08-22Refs #28502 -- Complemented stringformat tuple handling/test.Claude Paroz
An additional test and a code change were suggested in a late review.
2017-08-21Fixed #28502 -- Made stringformat template filter accept tuplesSrinivas Reddy Thatiparthy
2017-08-19Refs #28502 -- Completed stringformat filter testsSrinivas Reddy Thatiparthy
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-06-13Fixed #28071 -- Fixed {% extends %} origin history.John D'Ambrosio
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-05-11Fixed #28129 -- Allowed custom template tags to use keyword-only arguments.Alexander Allakhverdiyev
2017-04-06Fixed #28001 -- Updated comment and tested context popping in ForNode.render().kapil garg
2017-04-03Fixed #27974 -- Kept resolved templates constant during one rendering cycle.kapil garg
Thanks Florian Apolloner for the initial patch.
2017-03-31Fixed #27359 -- Made Engine.get_default() return the first DjangoTemplates ↵Carlton Gibson
engine if multiple are defined.
2017-03-31Added tests for template's Engine.get_default().Carlton Gibson
2017-03-25Fixed #27956 -- Fixed display of errors in an {% extends %} child.Tim Graham
Thanks Ling-Xiao Yang for the report and test, and Preston Timmons for the fix.
2017-03-15Fixed #27882 -- Allowed {% cache %} to cache indefinitely.Bo Marchman