summaryrefslogtreecommitdiff
path: root/tests/template_tests/utils.py
AgeCommit message (Collapse)Author
2025-09-03Refs #36559 -- Ran template partial source tests in debug mode only.farhan
Added a warning for accessing PartialTemplate.source when debugging is disabled. Thanks Sarah Boyce for the idea.
2022-05-25Normalized imports of functools.wraps.Aymeric Augustin
@wraps is 10 times more common than @functools.wraps. Standardize to the most common version.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-05-21Made test_once a keyword argument in template_tests.utils.setup().Jon Dufresne
Replaces the kwargs.get(...) pattern. Helps avoid typos by providing a better error message in case of misuse.
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-08-31Fixed #27140 -- Prevented template rendering from hiding a property's TypeError.Tim Graham
2015-09-23Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham
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-02-24Cleaned up template loader tests.Preston Timmons
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-11Fixed #23913 -- Deprecated the `=` comparison in `if` template tag.Ola Sitarska
2014-12-28Deprecated TEMPLATE_STRING_IF_INVALID.Aymeric Augustin
2014-12-28Isolated template tests from Django settings.Aymeric Augustin
2014-12-28Cleaned up the django.template namespace.Aymeric Augustin
Since this package is going to hold both the implementation of the Django Template Language and the infrastructure for Multiple Template Engines, it should be untied from the DTL as much as possible within our backwards-compatibility policy. Only public APIs (i.e. APIs mentioned in the documentation) were left.
2014-12-06Fixed #23958 -- Rewrote filter tests as unit tests.Preston Timmons