django1/tests/template_tests/syntax_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
..
__init__.py Fixed #23768 -- Rewrote template tests as unit tests. 2014-12-02 19:18:35 -05:00
test_autoescape.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_basic.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
test_builtins.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_cache.py Moved cache tests into syntax_tests/test_cache.py. 2015-02-24 14:00:02 +01:00
test_comment.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_cycle.py Fixed #24451 -- Deprecated comma-separated {% cycle %} syntax. 2015-03-07 07:42:39 -05:00
test_exceptions.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_extends.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_filter_syntax.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_filter_tag.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_firstof.py Applied ignore_warnings to Django tests 2014-12-30 18:16:25 +01:00
test_for.py Applied ignore_warnings to Django tests 2014-12-30 18:16:25 +01:00
test_i18n.py Fixed #24372 - Replaced TokenParser usage with traditional parsing. 2015-03-02 18:25:28 -05:00
test_if.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_if_changed.py Fixed #24451 -- Deprecated comma-separated {% cycle %} syntax. 2015-03-07 07:42:39 -05:00
test_if_equal.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_include.py Moved include tests into syntax_tests/test_include.py. 2015-02-24 14:00:02 +01:00
test_invalid_string.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_list_index.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_load.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_lorem.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_multiline.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_named_endblock.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_now.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_numpy.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_regroup.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_setup.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_simple_tag.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_spaceless.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_ssi.py Moved ssi tests into syntax_tests/test_ssi.py. 2015-02-24 14:00:02 +01:00
test_static.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_template_tag.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_url.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_verbatim.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_width_ratio.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00
test_with.py Isolated template tests from Django settings. 2014-12-28 16:23:01 +01:00