diff --git a/zerver/tests/test_decorators.py b/zerver/tests/test_decorators.py index 67caeb1897..65207c98b1 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), )