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_auth_backends: Remove unused self.user_profile.backend.

Zixuan James Li7bf58dbede69
diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py
index 0a56bbfd4d2..c4e0c9e918a 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