diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-12-14 23:13:03 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-12-28 17:02:30 +0100 |
| commit | d3a982556d655adcf4ba331d2def685d8249170f (patch) | |
| tree | 10cb8daafc5aeffdfd7fc962bf27b6e36409b93f /tests/template_tests/tests.py | |
| parent | 3dc01aaaaf7cf070933a8f5ee9a5f9136503d676 (diff) | |
Deprecated TEMPLATE_STRING_IF_INVALID.
Diffstat (limited to 'tests/template_tests/tests.py')
| -rw-r--r-- | tests/template_tests/tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 0466f91c7a..5128fd64d5 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -258,7 +258,13 @@ class TemplateRegressionTests(SimpleTestCase): with self.assertRaises(urlresolvers.NoReverseMatch): t.render(c) - @override_settings(TEMPLATE_STRING_IF_INVALID='%s is invalid', SETTINGS_MODULE='also_something') + @override_settings( + TEMPLATES=[{ + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'OPTIONS': {'string_if_invalid': '%s is invalid'}, + }], + SETTINGS_MODULE='also_something', + ) def test_url_reverse_view_name(self): # Regression test for #19827 t = Template('{% url will_not_match %}') |
