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.

test_decorators: Convert "".format to Python 3.6 f-strings.

Anders Kaseorgbd3c0999780b
diff --git a/zerver/tests/test_decorators.py b/zerver/tests/test_decorators.py
index 67caeb1897f..65207c98b1f 100644
--- a/zerver/tests/test_decorators.py
+++ b/zerver/tests/test_decorators.py
@@ -1263,7 +1263,7 @@ class InactiveUserTest(ZulipTestCase):
with self.settings(AUTHENTICATION_BACKENDS=("zproject.backends.EmailAuthBackend",)):
self.assertFalse(form.is_valid())
self.assertIn(
- "Your account {} has been deactivated".format(user_profile.delivery_email),
+ f"Your account {user_profile.delivery_email} has been deactivated",
str(form.errors),
)