Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #24451 -- Deprecated comma-separated {% cycle %} ↵Tim Graham2015-03-072-2/+8
| | | | syntax.
* Fixed urlize regression with entities in query stringsClaude Paroz2015-03-061-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 Timmons2015-03-051-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 Timmons2015-03-031-6/+33
| | | | specific exceptions.
* Fixed #24372 - Replaced TokenParser usage with ↵Preston Timmons2015-03-032-26/+44
| | | | traditional parsing.
* Fixed #24409 -- Combined the app_directories and ↵Preston Timmons2015-03-021-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 Timmons2015-02-242-7/+3
|
* Combined TemplateTests and TemplateRegressionTests.Preston Timmons2015-02-241-13/+15
|
* Moved test_token_smart_split into ParserTests.Preston Timmons2015-02-242-9/+11
|
* Moved ifchanged tests into syntax_tests/test_if_changed.py.Preston Timmons2015-02-242-28/+35
|
* Moved cache tests into syntax_tests/test_cache.py.Preston Timmons2015-02-242-43/+46
|
* Moved RequestContextTests into test_context.Preston Timmons2015-02-242-68/+74
|
* Moved TemplateTagLoading cases into test_custom.Preston Timmons2015-02-242-38/+40
|
* Moved include tests into syntax_tests/test_include.py.Preston Timmons2015-02-242-146/+131
|
* Moved ssi tests into syntax_tests/test_ssi.py.Preston Timmons2015-02-242-36/+33
|
* Cleaned up template loader tests.Preston Timmons2015-02-246-308/+314
|
* Set context.template instead of context.engine while ↵Aymeric Augustin2015-02-191-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 Graham2015-02-181-0/+2
| | | | Django source contains non-ASCII characters.
* Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin2015-02-153-22/+37
|
* Fixed #24338 -- Accepted Template wrapper in {% extends %}.Aymeric Augustin2015-02-141-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 Graham2015-02-0627-49/+48
|
* Fixed #24273 -- Allowed copying RequestContext more than ↵Aymeric Augustin2015-02-051-1/+6
| | | | | | once. Thanks Collin Anderson for the report.
* Cleaned up formatting in template_tests.test_custom.Preston Timmons2015-02-041-137/+135
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-2/+2
|
* Fixed #18651 -- Enabled optional assignments for ↵Preston Timmons2015-02-032-235/+68
| | | | simple_tag().
* Fixed #24168 -- Allowed selecting a template engine in a ↵Aymeric Augustin2015-02-033-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 Graham2015-01-191-6/+4
|
* Removed ssi/url tags from future per deprecation ↵Tim Graham2015-01-171-5/+3
| | | | timeline; refs #21939.
* Accounted for multiple template engines in template ↵Aymeric Augustin2015-01-121-10/+12
| | | | responses.
* Deprecated passing a Context to a generic Template.render.Aymeric Augustin2015-01-122-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 Graham2015-01-121-0/+2
|
* Fixed #23913 -- Deprecated the `=` comparison in `if` ↵Ola Sitarska2015-01-112-2/+49
| | | | template tag.
* Fixed #24094 -- Enabled template tests to run individually.Preston Timmons2015-01-093-211/+218
|
* Fixed #24022 -- Deprecated the ssi tag.Preston Timmons2015-01-062-2/+5
|
* Applied ignore_warnings to Django testsClaude Paroz2014-12-3011-218/+153
|
* Deprecated TEMPLATE_CONTEXT_PROCESSORS.Aymeric Augustin2014-12-281-4/+5
|
* Deprecated TEMPLATE_DIRS.Aymeric Augustin2014-12-282-10/+10
|
* Deprecated TEMPLATE_LOADERS.Aymeric Augustin2014-12-282-84/+129
|
* Deprecated TEMPLATE_STRING_IF_INVALID.Aymeric Augustin2014-12-283-10/+16
|
* Deprecated ALLOWED_INCLUDE_ROOTS.Aymeric Augustin2014-12-281-8/+7
|
* Deprecated current_app in TemplateResponse and ↵Aymeric Augustin2014-12-282-5/+13
| | | | render(_to_response).
* Supported multiple template engines in render_to_string.Aymeric Augustin2014-12-281-7/+15
| | | | Adjusted its API through a deprecation path according to the DEP.
* Removed private API find_template.Aymeric Augustin2014-12-281-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 Augustin2014-12-281-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 Augustin2014-12-2885-1080/+1069
|
* Cleaned up the django.template namespace.Aymeric Augustin2014-12-285-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 Timmons2014-12-1651-0/+1292
| | | | template_tests.
* Removed obsolete code for running test_loaders.py.Aymeric Augustin2014-12-131-5/+0
| | | | Running this file as a standalone script doesn't work anyway.
* Refs #23890 -- Restored silencing of numpy ↵Tim Graham2014-12-061-0/+8
| | | | DeprecationWarnings in template tests.
* Fixed #23958 -- Rewrote filter tests as unit tests.Preston Timmons2014-12-0689-543/+1682
|