Skip to content

Commit

Permalink
Fix various typos
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz authored Aug 6, 2023
1 parent 4486680 commit dd41f54
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docsrc/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Emails sent by FitTrackee are:

- account confirmation instructions
- password reset request
- email change (to old and new email adresses)
- email change (to old and new email addresses)
- password change
- notification when a data export archive is ready to download (*new in 0.7.13*)

Expand Down Expand Up @@ -338,7 +338,7 @@ API rate limits
$ flask limiter
Usage: flask limiter [OPTIONS] COMMAND [ARGS]...
Flask-Limiter maintenance & utility commmands
Flask-Limiter maintenance & utility commands
Options:
--help Show this message and exit.
Expand Down
2 changes: 1 addition & 1 deletion fittrackee/tests/users/test_users_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ def test_it_returns_error_when_new_email_is_same_as_current_email(
)

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(
Expand Down
2 changes: 1 addition & 1 deletion fittrackee/tests/users/test_users_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_it_raises_exception_if_provided_email_is_current_user_email(
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)

Expand Down
2 changes: 1 addition & 1 deletion fittrackee/users/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
2 changes: 1 addition & 1 deletion fittrackee/users/utils/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _update_user_email(
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
Expand Down

0 comments on commit dd41f54

Please sign in to comment.