From 7bf58dbede690847f6e9b5275c85028560f601a0 Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Thu, 21 Jul 2022 10:18:02 -0400 Subject: [PATCH] test_auth_backends: Remove unused self.user_profile.backend. This was added in d43b031a320e9357ddf8f2cee57dabfb449b2aeb and was unused when it was added. This is an error that we want to remove. Signed-off-by: Zixuan James Li --- zerver/tests/test_auth_backends.py | 1 - 1 file changed, 1 deletion(-) diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py index 0a56bbfd4d..c4e0c9e918 100644 --- a/zerver/tests/test_auth_backends.py +++ b/zerver/tests/test_auth_backends.py @@ -880,7 +880,6 @@ class SocialAuthBase(DesktopFlowTestingLib, ZulipTestCase, ABC): self.name = self.user_profile.full_name self.backend = self.BACKEND_CLASS self.backend.strategy = DjangoStrategy(storage=BaseDjangoStorage()) - self.user_profile.backend = self.backend self.logger_string = f"zulip.auth.{self.backend.name}" # This is a workaround for the fact that Python social auth