Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fixed #24451 -- Deprecated comma-separated {% cycle %} ↵ | Tim Graham | 2015-03-07 | 2 | -2/+8 | |
| | | | | syntax. | |||||
* | Fixed urlize regression with entities in query strings | Claude Paroz | 2015-03-06 | 1 | -0/+8 | |
| | | | | | | Refs #22267. Thanks Shai Berger for spotting the issue and Tim Graham for the initial patch. | |||||
* | Fixed test_notafile_error to pass on Windows. | Preston Timmons | 2015-03-05 | 1 | -1/+1 | |
| | | | | | | | This test failed because a different error code is raised on Windows when opening a directory. Since the particular message isn't as important to this test as the fact that the original IOError is reraised, this fixes the test by making the assertion more generic. | |||||
* | Fixed #24399 -- Made filesystem loaders use more ↵ | Preston Timmons | 2015-03-03 | 1 | -6/+33 | |
| | | | | specific exceptions. | |||||
* | Fixed #24372 - Replaced TokenParser usage with ↵ | Preston Timmons | 2015-03-03 | 2 | -26/+44 | |
| | | | | traditional parsing. | |||||
* | Fixed #24409 -- Combined the app_directories and ↵ | Preston Timmons | 2015-03-02 | 1 | -3/+17 | |
| | | | | | | | filesystem loader implementation. Besides the directories they look in, these two loaders are functionally the same. This removes unnecessary code duplication between the two. | |||||
* | Cleaned up template directory handling in template tests. | Preston Timmons | 2015-02-24 | 2 | -7/+3 | |
| | ||||||
* | Combined TemplateTests and TemplateRegressionTests. | Preston Timmons | 2015-02-24 | 1 | -13/+15 | |
| | ||||||
* | Moved test_token_smart_split into ParserTests. | Preston Timmons | 2015-02-24 | 2 | -9/+11 | |
| | ||||||
* | Moved ifchanged tests into syntax_tests/test_if_changed.py. | Preston Timmons | 2015-02-24 | 2 | -28/+35 | |
| | ||||||
* | Moved cache tests into syntax_tests/test_cache.py. | Preston Timmons | 2015-02-24 | 2 | -43/+46 | |
| | ||||||
* | Moved RequestContextTests into test_context. | Preston Timmons | 2015-02-24 | 2 | -68/+74 | |
| | ||||||
* | Moved TemplateTagLoading cases into test_custom. | Preston Timmons | 2015-02-24 | 2 | -38/+40 | |
| | ||||||
* | Moved include tests into syntax_tests/test_include.py. | Preston Timmons | 2015-02-24 | 2 | -146/+131 | |
| | ||||||
* | Moved ssi tests into syntax_tests/test_ssi.py. | Preston Timmons | 2015-02-24 | 2 | -36/+33 | |
| | ||||||
* | Cleaned up template loader tests. | Preston Timmons | 2015-02-24 | 6 | -308/+314 | |
| | ||||||
* | Set context.template instead of context.engine while ↵ | Aymeric Augustin | 2015-02-19 | 1 | -5/+2 | |
| | | | | | | | | rendering. This opens more possibilities, like accessing context.template.origin. It also follows the chain of objects instead of following a shortcut. | |||||
* | Refs #24324 -- Fixed Python 2 test failures when path to ↵ | Tim Graham | 2015-02-18 | 1 | -0/+2 | |
| | | | | Django source contains non-ASCII characters. | |||||
* | Deprecated TEMPLATE_DEBUG setting. | Aymeric Augustin | 2015-02-15 | 3 | -22/+37 | |
| | ||||||
* | Fixed #24338 -- Accepted Template wrapper in {% extends %}. | Aymeric Augustin | 2015-02-14 | 1 | -1/+11 | |
| | | | | | | | | Explicitly checking for django.template.Template subclasses is preferrable to duck-typing because both the django.template.Template and django.template.backends.django.Template have a render() method. Thanks spectras for the report. | |||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 27 | -49/+48 | |
| | ||||||
* | Fixed #24273 -- Allowed copying RequestContext more than ↵ | Aymeric Augustin | 2015-02-05 | 1 | -1/+6 | |
| | | | | | | once. Thanks Collin Anderson for the report. | |||||
* | Cleaned up formatting in template_tests.test_custom. | Preston Timmons | 2015-02-04 | 1 | -137/+135 | |
| | ||||||
* | Fixed #24149 -- Normalized tuple settings to lists. | darkryder | 2015-02-03 | 1 | -2/+2 | |
| | ||||||
* | Fixed #18651 -- Enabled optional assignments for ↵ | Preston Timmons | 2015-02-03 | 2 | -235/+68 | |
| | | | | simple_tag(). | |||||
* | Fixed #24168 -- Allowed selecting a template engine in a ↵ | Aymeric Augustin | 2015-02-03 | 3 | -0/+22 | |
| | | | | | | | | | | | | few APIs. Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review. | |||||
* | Removed usage of deprecated removetags in a template test. | Tim Graham | 2015-01-19 | 1 | -6/+4 | |
| | ||||||
* | Removed ssi/url tags from future per deprecation ↵ | Tim Graham | 2015-01-17 | 1 | -5/+3 | |
| | | | | timeline; refs #21939. | |||||
* | Accounted for multiple template engines in template ↵ | Aymeric Augustin | 2015-01-12 | 1 | -10/+12 | |
| | | | | responses. | |||||
* | Deprecated passing a Context to a generic Template.render. | Aymeric Augustin | 2015-01-12 | 2 | -10/+10 | |
| | | | | | | | | | | | A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered. | |||||
* | Fixed test from refs #23913 when running tests in reverse. | Tim Graham | 2015-01-12 | 1 | -0/+2 | |
| | ||||||
* | Fixed #23913 -- Deprecated the `=` comparison in `if` ↵ | Ola Sitarska | 2015-01-11 | 2 | -2/+49 | |
| | | | | template tag. | |||||
* | Fixed #24094 -- Enabled template tests to run individually. | Preston Timmons | 2015-01-09 | 3 | -211/+218 | |
| | ||||||
* | Fixed #24022 -- Deprecated the ssi tag. | Preston Timmons | 2015-01-06 | 2 | -2/+5 | |
| | ||||||
* | Applied ignore_warnings to Django tests | Claude Paroz | 2014-12-30 | 11 | -218/+153 | |
| | ||||||
* | Deprecated TEMPLATE_CONTEXT_PROCESSORS. | Aymeric Augustin | 2014-12-28 | 1 | -4/+5 | |
| | ||||||
* | Deprecated TEMPLATE_DIRS. | Aymeric Augustin | 2014-12-28 | 2 | -10/+10 | |
| | ||||||
* | Deprecated TEMPLATE_LOADERS. | Aymeric Augustin | 2014-12-28 | 2 | -84/+129 | |
| | ||||||
* | Deprecated TEMPLATE_STRING_IF_INVALID. | Aymeric Augustin | 2014-12-28 | 3 | -10/+16 | |
| | ||||||
* | Deprecated ALLOWED_INCLUDE_ROOTS. | Aymeric Augustin | 2014-12-28 | 1 | -8/+7 | |
| | ||||||
* | Deprecated current_app in TemplateResponse and ↵ | Aymeric Augustin | 2014-12-28 | 2 | -5/+13 | |
| | | | | render(_to_response). | |||||
* | Supported multiple template engines in render_to_string. | Aymeric Augustin | 2014-12-28 | 1 | -7/+15 | |
| | | | | Adjusted its API through a deprecation path according to the DEP. | |||||
* | Removed private API find_template. | Aymeric Augustin | 2014-12-28 | 1 | -4/+6 | |
| | | | | | It wasn't documented and it wasn't used anywhere, except in a few tests that don't test it specifically and can be rewritten with get_template. | |||||
* | Supported multiple template engines in get_template and ↵ | Aymeric Augustin | 2014-12-28 | 1 | -3/+3 | |
| | | | | | | | | select_template. This commit changes the return type of these two functions. Instead of returning a django.template.Template they return a backend-specific Template class that must implement render(self, context). | |||||
* | Isolated template tests from Django settings. | Aymeric Augustin | 2014-12-28 | 85 | -1080/+1069 | |
| | ||||||
* | Cleaned up the django.template namespace. | Aymeric Augustin | 2014-12-28 | 5 | -10/+15 | |
| | | | | | | | | | 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. | |||||
* | Fixed #16028 -- Moved defaultfilters tests into ↵ | Preston Timmons | 2014-12-16 | 51 | -0/+1292 | |
| | | | | template_tests. | |||||
* | Removed obsolete code for running test_loaders.py. | Aymeric Augustin | 2014-12-13 | 1 | -5/+0 | |
| | | | | Running this file as a standalone script doesn't work anyway. | |||||
* | Refs #23890 -- Restored silencing of numpy ↵ | Tim Graham | 2014-12-06 | 1 | -0/+8 | |
| | | | | DeprecationWarnings in template tests. | |||||
* | Fixed #23958 -- Rewrote filter tests as unit tests. | Preston Timmons | 2014-12-06 | 89 | -543/+1682 | |
| |