Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use fstring
  • Loading branch information
nyalldawson committed Apr 26, 2023
1 parent ac533e3 commit 60380c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/testing/__init__.py
Expand Up @@ -128,7 +128,7 @@ def image_check(cls,
checker.setColorTolerance(color_tolerance)
result = checker.runTest(name, allowed_mismatch)
if not result:
cls.report += "<h2>Render {}</h2>\n".format(name)
cls.report += f"<h2>Render {name}</h2>\n"
cls.report += checker.report()

return result
Expand All @@ -150,7 +150,7 @@ def render_map_settings_check(cls,
checker.setColorTolerance(color_tolerance)
result = checker.runTest(name, allowed_mismatch or 0)
if not result:
cls.report += "<h2>Render {}</h2>\n".format(name)
cls.report += f"<h2>Render {name}</h2>\n"
cls.report += checker.report()

return result
Expand All @@ -168,7 +168,7 @@ def render_layout_check(cls,
checker.setControlPathPrefix(cls.control_path_prefix())
result, message = checker.testLayout()
if not result:
cls.report += "<h2>Render {}</h2>\n".format(name)
cls.report += f"<h2>Render {name}</h2>\n"
cls.report += checker.report()
return result

Expand Down

0 comments on commit 60380c1

Please sign in to comment.