Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20b018a

Browse files
committed
Pass missing variable to format string.
1 parent 50f8c59 commit 20b018a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

visual_tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"""
3939

4040
row_template = ('<tr>'
41-
'<td>{0} {1}</td>'
41+
'<td>{0}{1}</td>'
4242
'<td>{2}</td>'
4343
'<td><a href="{3}"><img src="{3}"></a></td>'
4444
'<td>{4}</td>'
@@ -80,7 +80,7 @@ def run():
8080
if test.get("f", None):
8181
# a real failure in the image generation, resulting in different images
8282
_has_failure = True
83-
s = "(failed)"
83+
status = " (failed)"
8484
failed = '<a href="{0}">diff</a>'.format(test.get("f", ""))
8585
current = linked_image_template.format(test.get("c", ""))
8686
failed_rows.append(row_template.format(name, "", current,
@@ -89,17 +89,17 @@ def run():
8989
elif test.get("c", None) is None:
9090
# A failure in the test, resulting in no current image
9191
_has_failure = True
92-
s = "(failed)"
92+
status = " (failed)"
9393
failed = '--'
9494
current = '(Failure in test, no image produced)'
9595
failed_rows.append(row_template.format(name, "", current,
9696
test.get("e", ""),
9797
failed))
9898
else:
99-
s = "(passed)"
99+
status = " (passed)"
100100
failed = '--'
101101
current = linked_image_template.format(test.get("c", ""))
102-
subdir_rows.append(row_template.format(name, "", current,
102+
subdir_rows.append(row_template.format(name, status, current,
103103
test.get("e", ""), failed))
104104

105105
body_sections.append(

0 commit comments

Comments
 (0)