summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_custom.py
AgeCommit message (Collapse)Author
2025-12-05Fixed #36728 -- Validated template tag arguments at definition time.Jake Howard
Before, `context` and `content` were validated at compile time.
2025-07-22Fixed incorrectly concatenated string in ↵Mike Edmunds
SimpleBlockTagTests.test_simple_block_tag_with_context_missing_content().
2024-11-19Fixed #35535 -- Added template tag decorator simple_block_tag().Jake Howard
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
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-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], )
2021-08-19Fixed #33036 -- Made simple_tag()/inclusion_tag() with takes_context raise ↵Matt Westcott
TemplateSyntaxError when function has no parameters.
2020-01-02Fixed #31128 -- Fixed TemplateSyntaxError in simple_tag() and ↵Patrick Seebauer
inclusion_tag() for kwargs.
2018-05-25Fixed #29400 -- Fixed crash in custom template filters that use decorated ↵Ryan Rubin
functions. Regression in 620e9dd31a2146d70de740f96a8cb9a6db054fc7.
2017-05-11Fixed #28129 -- Allowed custom template tags to use keyword-only arguments.Alexander Allakhverdiyev
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Simplified assertRaisesRegex()'s that accounted for Python 2.Tim Graham
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #18651 -- Removed assignment_tag per deprecation timeline.Tim Graham
2016-12-07Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.Tim Graham
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2015-09-23Removed current_app argument to render() and TemplateResponse().Tim Graham
Per deprecation timeline.
2015-09-18Refs #25422 -- Added a test for a template tag with type annotations.Thomas Orozco
This doesn't work in Django 1.8 but was fixed in Django 1.9 as a side effect of another change.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-06-29Fixed #25018 -- Changed simple_tag to apply conditional_escape() to its output.Luke Plant
This is a security hardening fix to help prevent XSS (and incorrect HTML) for the common use case of simple_tag. Thanks to Tim Graham for the review.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-05-21Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons
* Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
2015-04-20Updated template tests to create their own engine.Preston Timmons
This continues work to treat Django templates as a library.
2015-04-01Fixed #23441, #24555 -- Improved the behavior of InclusionNode.Preston Timmons
This change: * Makes the InclusionNode cache-safe by removing render-time side effects to its nodelist. * Ensures the render_context stack is properly scoped and reset by updating the render call to use Template.render rather than Nodelist.render.
2015-02-24Moved TemplateTagLoading cases into test_custom.Preston Timmons
2015-02-04Cleaned up formatting in template_tests.test_custom.Preston Timmons
2015-02-03Fixed #18651 -- Enabled optional assignments for simple_tag().Preston Timmons
2015-01-09Fixed #24094 -- Enabled template tests to run individually.Preston Timmons
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-28Deprecated current_app in TemplateResponse and render(_to_response).Aymeric Augustin
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-04-12Modified template_tests for unittest2 discovery.Preston Timmons