From 2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 1 Jun 2017 16:08:59 -0700 Subject: Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. --- tests/template_tests/syntax_tests/test_if_changed.py | 4 ++-- tests/template_tests/syntax_tests/test_include.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/template_tests/syntax_tests') diff --git a/tests/template_tests/syntax_tests/test_if_changed.py b/tests/template_tests/syntax_tests/test_if_changed.py index 2e6b2c9684..5ea6b0dcf4 100644 --- a/tests/template_tests/syntax_tests/test_if_changed.py +++ b/tests/template_tests/syntax_tests/test_if_changed.py @@ -210,7 +210,7 @@ class IfChangedTests(SimpleTestCase): 'include': '{% ifchanged %}{{ x }}{% endifchanged %}', }), ]) - output = engine.render_to_string('template', dict(vars=[1, 1, 2, 2, 3, 3])) + output = engine.render_to_string('template', {'vars': [1, 1, 2, 2, 3, 3]}) self.assertEqual(output, "123") def test_include_state(self): @@ -221,5 +221,5 @@ class IfChangedTests(SimpleTestCase): 'include': '{% ifchanged %}{{ x }}{% endifchanged %}', }), ]) - output = engine.render_to_string('template', dict(vars=[1, 1, 2, 2, 3, 3])) + output = engine.render_to_string('template', {'vars': [1, 1, 2, 2, 3, 3]}) self.assertEqual(output, '112233') diff --git a/tests/template_tests/syntax_tests/test_include.py b/tests/template_tests/syntax_tests/test_include.py index 5f92efc05a..760a801377 100644 --- a/tests/template_tests/syntax_tests/test_include.py +++ b/tests/template_tests/syntax_tests/test_include.py @@ -326,5 +326,5 @@ class IncludeTests(SimpleTestCase): 'next': '{% load custom %}{% counter %}' }), ], libraries={'custom': 'template_tests.templatetags.custom'}) - output = engine.render_to_string('template', dict(vars=range(9))) + output = engine.render_to_string('template', {'vars': range(9)}) self.assertEqual(output, '012345678') -- cgit v1.3