mirror of https://github.com/zulip/zulip.git
Add test for ZulipRemoteUserBackend.
This commit is contained in:
parent
839cab3434
commit
8064ed1c0b
|
@ -805,6 +805,11 @@ class TestZulipRemoteUserBackend(ZulipTestCase):
|
|||
self.assertEqual(result.status_code, 302)
|
||||
self.assertEqual(get_session_dict_user(self.client.session), user_profile.id)
|
||||
|
||||
def test_authenticate_with_missing_user(self):
|
||||
# type: () -> None
|
||||
backend = ZulipRemoteUserBackend()
|
||||
self.assertIs(backend.authenticate(None), None)
|
||||
|
||||
def test_login_success_with_sso_append_domain(self):
|
||||
# type: () -> None
|
||||
username = 'hamlet'
|
||||
|
|
Loading…
Reference in New Issue