Skip to content

Commit 00a587d

Browse files
committed
Django 1.7 deprecated unpacking strings into loop variables
1 parent 4372adb commit 00a587d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_ifchanged(self):
151151
""")
152152

153153
text = self.run_django_coverage(context={
154-
'items': ["AX", "AY", "BZ", "BW"],
154+
'items': [("A", "X"), ("A", "Y"), ("B", "Z"), ("B", "W")],
155155
})
156156
self.assertEqual(squashed(text), 'AXYBZW')
157157
self.assert_analysis([1, 2, 3, 4, 5])
@@ -167,7 +167,7 @@ def test_ifchanged_variable(self):
167167
""")
168168

169169
text = self.run_django_coverage(context={
170-
'items': ["AX", "AY", "BZ", "BW"],
170+
'items': [("A", "X"), ("A", "Y"), ("B", "Z"), ("B", "W")],
171171
})
172172
self.assertEqual(squashed(text), 'AXYBZW')
173173
self.assert_analysis([1, 2, 3, 4, 5])

0 commit comments

Comments
 (0)