diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 10:14:57 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 17:50:04 +0100 |
| commit | e7208f13c0448387e56c340eed46e1ed9ef9997e (patch) | |
| tree | 93afdd52adc4d38a1e98c68d3f63f024384205d0 /tests/template_tests/test_nodelist.py | |
| parent | 2dd6a83d2d7c61321ac4a9b10fbf3c379cb305c3 (diff) | |
Refs #25236 -- Removed {% ifequal %} and {% ifnotequal %} template tags per deprecation timeline.
Diffstat (limited to 'tests/template_tests/test_nodelist.py')
| -rw-r--r-- | tests/template_tests/test_nodelist.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/template_tests/test_nodelist.py b/tests/template_tests/test_nodelist.py index b0e97b88da..03c0d99651 100644 --- a/tests/template_tests/test_nodelist.py +++ b/tests/template_tests/test_nodelist.py @@ -1,7 +1,6 @@ from django.template import Context, Engine from django.template.base import TextNode, VariableNode -from django.test import SimpleTestCase, ignore_warnings -from django.utils.deprecation import RemovedInDjango40Warning +from django.test import SimpleTestCase class NodelistTest(SimpleTestCase): @@ -21,12 +20,6 @@ class NodelistTest(SimpleTestCase): vars = template.nodelist.get_nodes_by_type(VariableNode) self.assertEqual(len(vars), 1) - @ignore_warnings(category=RemovedInDjango40Warning) - def test_ifequal(self): - template = self.engine.from_string('{% ifequal x y %}{{ a }}{% endifequal %}') - vars = template.nodelist.get_nodes_by_type(VariableNode) - self.assertEqual(len(vars), 1) - def test_ifchanged(self): template = self.engine.from_string('{% ifchanged x %}{{ a }}{% endifchanged %}') vars = template.nodelist.get_nodes_by_type(VariableNode) |
