Fix various typos
This commit is contained in:
@ -1249,7 +1249,7 @@ class TestUpdateUser(ApiTestCaseMixin):
|
||||
)
|
||||
|
||||
self.assert_400(
|
||||
response, 'new email must be different than curent email'
|
||||
response, 'new email must be different than current email'
|
||||
)
|
||||
|
||||
def test_it_does_not_send_email_when_error_on_updating_email(
|
||||
|
@ -161,7 +161,7 @@ class TestUserManagerServiceUserUpdate:
|
||||
user_manager_service = UserManagerService(username=user_1.username)
|
||||
with pytest.raises(
|
||||
InvalidEmailException,
|
||||
match='new email must be different than curent email',
|
||||
match='new email must be different than current email',
|
||||
):
|
||||
user_manager_service.update(new_email=user_1.email)
|
||||
|
||||
|
@ -508,7 +508,7 @@ def update_user(auth_user: User, user_name: str) -> Union[Dict, HttpResponse]:
|
||||
:statuscode 400:
|
||||
- ``invalid payload``
|
||||
- ``valid email must be provided``
|
||||
- ``new email must be different than curent email``
|
||||
- ``new email must be different than current email``
|
||||
:statuscode 401:
|
||||
- ``provide a valid auth token``
|
||||
- ``signature expired, please log in again``
|
||||
|
@ -49,7 +49,7 @@ class UserManagerService:
|
||||
raise InvalidEmailException('valid email must be provided')
|
||||
if user.email == new_email:
|
||||
raise InvalidEmailException(
|
||||
'new email must be different than curent email'
|
||||
'new email must be different than current email'
|
||||
)
|
||||
if with_confirmation:
|
||||
user.email_to_confirm = new_email
|
||||
|
Reference in New Issue
Block a user