#24094: Unable to run a subset of template tests
---------------------------------+-------------------------------------
Reporter: timgraham | Owner: aaugustin
Type: Bug | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-------------------------------------
Comment (by prestontimmons):
I added a pull request for this. It fixes the problem by moving inclusion
tags from `template_tests.templatetags.custom` into their own module,
`template_tests.templatetags.inclusion`.
The warnings were masked before because
`template_tests.test_loaders.DeprecatedRenderToStringTest.test_no_empty_dict_pushed_to_stack`
uses a template that runs `{% load custom %}`. Since the `get_template`
calls are evaluated at import time, no warning was raised when
`template_tests.syntax_tests` later loaded that file.
Since the `syntax_tests` don't use the inclusion tags, the tests now run
isolated from any global settings.
--
Ticket URL: <https://code.djangoproject.com/ticket/24094#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.6a50534757471c07dd6ad648e12ad3a1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.