Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ruff: Fix UP032 Use f-string instead of `format` call.

Anders Kaseorgcb8c7f2a17f5
diff --git a/zerver/tests/test_markdown.py b/zerver/tests/test_markdown.py
index 912aa5dde01..bae1c4a30a1 100644
--- a/zerver/tests/test_markdown.py
+++ b/zerver/tests/test_markdown.py
@@ -674,7 +674,7 @@ class MarkdownTest(ZulipTestCase):
image_links.append("> http://cdn.wallpapersafari.com/spoiler/dont_count.jpeg\n")
# Using INLINE_PREVIEW_LIMIT_PER_MESSAGE - 1 because of the one link in a spoiler added already
for x in range(InlineInterestingLinkProcessor.INLINE_PREVIEW_LIMIT_PER_MESSAGE - 1):
- image_links.append("http://cdn.wallpapersafari.com/{}/6/16eVjx.jpeg".format(x))
+ image_links.append(f"http://cdn.wallpapersafari.com/{x}/6/16eVjx.jpeg")
within_limit_content = "\n".join(image_links)
above_limit_content = (
within_limit_content + "\nhttp://cdn.wallpapersafari.com/above/0/6/16eVjx.jpeg"