mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
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:
committed by
Alex Vandiver
parent
2e9544a9a5
commit
8fdcadb08a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user