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.

tests: Remove duplicate verify_backend() calls.

Dinesh741396625582
diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py
index 733ceb91a5a..a745872a2d6 100644
--- a/zerver/tests/test_auth_backends.py
+++ b/zerver/tests/test_auth_backends.py
@@ -273,23 +273,6 @@ class AuthBackendTest(ZulipTestCase):
return_data={},
),
)
- self.verify_backend(
- EmailAuthBackend(),
- good_kwargs=dict(
- request=mock.MagicMock(),
- password=password,
- username=username,
- realm=get_realm("zulip"),
- return_data={},
- ),
- bad_kwargs=dict(
- request=mock.MagicMock(),
- password=password,
- username=username,
- realm=get_realm("zephyr"),
- return_data={},
- ),
- )
def test_email_auth_backend_empty_password(self) -> None:
user_profile = self.example_user("hamlet")
@@ -449,21 +432,6 @@ class AuthBackendTest(ZulipTestCase):
realm=get_realm("zulip"),
),
)
- self.verify_backend(
- backend,
- bad_kwargs=dict(
- request=mock.MagicMock(),
- username=username,
- password=password,
- realm=get_realm("zephyr"),
- ),
- good_kwargs=dict(
- request=mock.MagicMock(),
- username=username,
- password=password,
- realm=get_realm("zulip"),
- ),
- )
def test_devauth_backend(self) -> None:
self.verify_backend(