initial_password: Add unit test for INITIAL_PASSWORD_SALT = None.

This commit is contained in:
Nikhil Kumar Mishra
2018-03-19 01:26:00 +05:30
committed by Tim Abbott
parent 9e17692d94
commit a5472ddee7

View File

@@ -136,6 +136,11 @@ class AddNewUserHistoryTest(ZulipTestCase):
self.send_stream_message(self.example_email('hamlet'), streams[0].name, "test")
add_new_user_history(user_profile, streams)
class InitialPasswordTest(ZulipTestCase):
def test_none_initial_password_salt(self) -> None:
with self.settings(INITIAL_PASSWORD_SALT=None):
self.assertIsNone(initial_password('test@test.com'))
class PasswordResetTest(ZulipTestCase):
"""
Log in, reset password, log out, log in with new password.