django/tests/template_tests
Preston Timmons 55f12f8709 Cleaned up the template debug implementation.
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.
2015-03-20 08:58:07 -04:00
..
eggs Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
filter_tests Fixed #24471 -- Enhanced urlize regex to exclude quotes and angle brackets. 2015-03-10 19:24:46 -04:00
jinja2/template_tests Fixed #24168 -- Allowed selecting a template engine in a few APIs. 2015-02-03 08:29:45 +01:00
other_templates Cleaned up template loader tests. 2015-02-24 14:00:02 +01:00
syntax_tests Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
templates Cleaned up template loader tests. 2015-02-24 14:00:02 +01:00
templatetags Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
__init__.py Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
alternate_urls.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_callables.py Deprecated TEMPLATE_STRING_IF_INVALID. 2014-12-28 17:02:30 +01:00
test_context.py Fixed #24493 -- Added BaseContext.setdefault() 2015-03-16 13:13:02 -04:00
test_custom.py Moved TemplateTagLoading cases into test_custom. 2015-02-24 14:00:02 +01:00
test_engine.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
test_loaders.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
test_nodelist.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
test_parser.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
test_response.py Cleaned up template directory handling in template tests. 2015-02-24 14:00:03 +01:00
test_smartif.py Fixing E302 Errors 2013-11-02 23:48:47 -05:00
test_unicode.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
tests.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
urls.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
utils.py Cleaned up template loader tests. 2015-02-24 14:00:02 +01:00
views.py Fixing E302 Errors 2013-11-02 23:48:47 -05:00