mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
parent
edee5a8de6
commit
2c69824e5a
63 changed files with 145 additions and 150 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue