summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/syntax_tests')
-rw-r--r--tests/template_tests/syntax_tests/test_if_changed.py4
-rw-r--r--tests/template_tests/syntax_tests/test_include.py2
2 files changed, 3 insertions, 3 deletions
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')