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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-09-21 21:10:00 -07:00 committed by Anders Kaseorg
parent 7d515ac510
commit bd3c099978
1 changed files with 1 additions and 1 deletions

View File

@ -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),
)