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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-03-20 19:43:05 -07:00
committed by Tim Abbott
parent f1b8e11e8b
commit a1a341f0ae
11 changed files with 35 additions and 68 deletions

View File

@@ -3274,9 +3274,7 @@ class DefaultStreamGroupTest(ZulipTestCase):
)
self.assert_json_error(
result,
"Default stream group name too long (limit: {} characters)".format(
DefaultStreamGroup.MAX_NAME_LENGTH
),
f"Default stream group name too long (limit: {DefaultStreamGroup.MAX_NAME_LENGTH} characters)",
)
result = self.client_post(