Skip to content

Commit

Permalink
fix invite text
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed May 15, 2024
1 parent 522fe35 commit a274aae
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/organization/invite_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def validate_invitation_token(token):
)
except SignatureExpired:
errors = {
"invitation": "Your invitation to GOV.UK Notify has expired. "
"invitation": "Your invitation to Notify.gov has expired. "
"Please ask the person that invited you to send you another one"
}
raise InvalidRequest(errors, status_code=400)
Expand Down
2 changes: 1 addition & 1 deletion app/service_invite/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def validate_service_invitation_token(token):
)
except SignatureExpired:
errors = {
"invitation": "Your invitation to GOV.UK Notify has expired. "
"invitation": "Your invitation to Notify.gov has expired. "
"Please ask the person that invited you to send you another one"
}
raise InvalidRequest(errors, status_code=400)
Expand Down
5 changes: 3 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/app/organization/test_invite_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def test_validate_invitation_token_for_expired_token_returns_400(client):
json_resp = json.loads(response.get_data(as_text=True))
assert json_resp["result"] == "error"
assert json_resp["message"] == {
"invitation": "Your invitation to GOV.UK Notify has expired. "
"invitation": "Your invitation to Notify.gov has expired. "
"Please ask the person that invited you to send you another one"
}

Expand Down
2 changes: 1 addition & 1 deletion tests/app/service_invite/test_service_invite_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def test_validate_invitation_token_for_expired_token_returns_400(client):
json_resp = json.loads(response.get_data(as_text=True))
assert json_resp["result"] == "error"
assert json_resp["message"] == {
"invitation": "Your invitation to GOV.UK Notify has expired. "
"invitation": "Your invitation to Notify.gov has expired. "
"Please ask the person that invited you to send you another one"
}

Expand Down

0 comments on commit a274aae

Please sign in to comment.