summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
authorDavid Smith <39445562+smithdc1@users.noreply.github.com>2021-08-02 06:51:24 +0100
committerGitHub <noreply@github.com>2021-08-02 07:51:24 +0200
commitf9b7704ab38d82d1de0c26deb542e497ebf14df6 (patch)
treec15f427178316e6a234791dd4c52fcc3d2433c28 /tests/template_tests
parent6802ac4415d6ebf9500df47dc22727a1d1b569d1 (diff)
downloaddjango-f9b7704ab38d82d1de0c26deb542e497ebf14df6.tar.gz
Refs #32956 -- Corrected spelling of "gray".
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/syntax_tests/test_if_changed.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template_tests/syntax_tests/test_if_changed.py b/tests/template_tests/syntax_tests/test_if_changed.py
index 5ea6b0dcf4..fd48a42389 100644
--- a/tests/template_tests/syntax_tests/test_if_changed.py
+++ b/tests/template_tests/syntax_tests/test_if_changed.py
@@ -125,11 +125,11 @@ class IfChangedTagTests(SimpleTestCase):
self.assertEqual(output, '1-first,1-other,2-first,2-other,2-other,3-first,')
@setup({'ifchanged-else02': '{% for id in ids %}{{ id }}-'
- '{% ifchanged id %}{% cycle "red" "blue" %}{% else %}grey{% endifchanged %}'
+ '{% ifchanged id %}{% cycle "red" "blue" %}{% else %}gray{% endifchanged %}'
',{% endfor %}'})
def test_ifchanged_else02(self):
output = self.engine.render_to_string('ifchanged-else02', {'ids': [1, 1, 2, 2, 2, 3]})
- self.assertEqual(output, '1-red,1-grey,2-blue,2-grey,2-grey,3-red,')
+ self.assertEqual(output, '1-red,1-gray,2-blue,2-gray,2-gray,3-red,')
@setup({'ifchanged-else03': '{% for id in ids %}{{ id }}'
'{% ifchanged id %}-{% cycle "red" "blue" %}{% else %}{% endifchanged %}'