diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-03 15:52:04 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:10 -0400 |
| commit | 5e450c52aafb62b9d83c8ac08892e0b92cbec4aa (patch) | |
| tree | dbc6b0360aba68d492dc0925d527c9c0f237f401 /tests/template_tests/test_custom.py | |
| parent | 75374d3797c2cd2423982a870bb0bc74821e951f (diff) | |
Removed current_app argument to render() and TemplateResponse().
Per deprecation timeline.
Diffstat (limited to 'tests/template_tests/test_custom.py')
| -rw-r--r-- | tests/template_tests/test_custom.py | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/template_tests/test_custom.py b/tests/template_tests/test_custom.py index 48252e1788..12331afce8 100644 --- a/tests/template_tests/test_custom.py +++ b/tests/template_tests/test_custom.py @@ -6,10 +6,9 @@ from unittest import skipUnless from django.template import Context, Engine, TemplateSyntaxError from django.template.base import Node from django.template.library import InvalidTemplateLibrary -from django.test import SimpleTestCase, ignore_warnings +from django.test import SimpleTestCase from django.test.utils import extend_sys_path from django.utils import six -from django.utils.deprecation import RemovedInDjango110Warning from .templatetags import custom, inclusion from .utils import ROOT @@ -270,23 +269,8 @@ class InclusionTagTests(TagTestCase): self.verify_tag(inclusion.inclusion_only_unlimited_args, 'inclusion_only_unlimited_args') self.verify_tag(inclusion.inclusion_tag_without_context_parameter, 'inclusion_tag_without_context_parameter') self.verify_tag(inclusion.inclusion_tag_use_l10n, 'inclusion_tag_use_l10n') - self.verify_tag(inclusion.inclusion_tag_current_app, 'inclusion_tag_current_app') self.verify_tag(inclusion.inclusion_unlimited_args_kwargs, 'inclusion_unlimited_args_kwargs') - @ignore_warnings(category=RemovedInDjango110Warning) - def test_15070_current_app(self): - """ - Test that inclusion tag passes down `current_app` of context to the - Context of the included/rendered template as well. - """ - c = Context({}) - t = self.engine.from_string('{% load inclusion %}{% inclusion_tag_current_app %}') - self.assertEqual(t.render(c).strip(), 'None') - - # That part produces the deprecation warning - c = Context({}, current_app='advanced') - self.assertEqual(t.render(c).strip(), 'advanced') - def test_15070_use_l10n(self): """ Test that inclusion tag passes down `use_l10n` of context to the |
