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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 50e6cba1af)
This commit is contained in:
Anders Kaseorg
2023-07-19 14:06:38 -07:00
committed by Alex Vandiver
parent 2e9544a9a5
commit 8fdcadb08a
7 changed files with 11 additions and 29 deletions

View File

@@ -4128,9 +4128,7 @@ class MessageHasKeywordsTest(ZulipTestCase):
dummy_urls = [f"http://zulip.testserver/user_uploads/{x}" for x in dummy_path_ids]
self.subscribe(hamlet, "Denmark")
body = ("Files ...[zulip.txt]({}) {} {}").format(
dummy_urls[0], dummy_urls[1], dummy_urls[2]
)
body = f"Files ...[zulip.txt]({dummy_urls[0]}) {dummy_urls[1]} {dummy_urls[2]}"
msg_id = self.send_stream_message(hamlet, "Denmark", body, "test")
msg = Message.objects.get(id=msg_id)