summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_nodelist.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-22/+33
|
* Refs #25236 -- Removed {% ifequal %} and {% ifnotequal %} template tags per ↵Mariusz Felisiak2021-01-141-8/+1
| | | | deprecation timeline.
* Fixed #25236 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags.Jon Dufresne2020-05-111-1/+3
| | | | | | | | The {% if %} tag provides all features of these tags. Since Django 1.2 (May 17, 2010), the docs have hinted that {% ifequal %} and {% ifnotequal %} will be deprecated in a future Django version. Time to make it official.
* Switched unittest.TestCase to SimpleTestCase in template_tests/test_nodelist.py.Jon Dufresne2020-05-111-5/+4
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-5/+2
| | | | Thanks Tim Graham for the review.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-3/+15
|
* Used %r in the TextNode repr to show newlines better.Ned Batchelder2015-06-301-1/+17
|
* Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons2015-05-211-1/+1
| | | | | | * 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.
* Updated template tests to create their own engine.Preston Timmons2015-04-201-8/+12
| | | | This continues work to treat Django templates as a library.
* Cleaned up the template debug implementation.Preston Timmons2015-03-201-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This patch does three major things: * Merges the django.template.debug implementation into django.template.base. * Simplifies the debug implementation. The old implementation copied debug information to every token and node. The django_template_source attribute was set in multiple places, some quite hacky, like django.template.defaulttags.ForNode. Debug information is now annotated in two high-level places: * Template.compile_nodelist for errors during parsing * Node.render_annotated for errors during rendering These were chosen because they have access to the template and context as well as to all exceptions that happen during either the parse or render phase. * Moves the contextual line traceback information creation from django.views.debug into django.template.base.Template. The debug views now only deal with the presentation of the debug information.
* Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin2015-02-151-1/+1
|
* Cleaned up the django.template namespace.Aymeric Augustin2014-12-281-1/+2
| | | | | | | | | 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.
* Avoided using private API get_template_from_string.Aymeric Augustin2014-10-311-11/+6
|
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-1/+1
|
* Fixing E302 ErrorsJason Myers2013-11-021-1/+2
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+2
| | | | Refs #20680.
* Modified template_tests for unittest2 discovery.Preston Timmons2013-04-121-0/+58