mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Update the tests for the new text
This commit is contained in:
@@ -34,7 +34,8 @@ def get_invited_user_by_token(token):
|
|||||||
max_age_seconds)
|
max_age_seconds)
|
||||||
except SignatureExpired:
|
except SignatureExpired:
|
||||||
errors = {'invitation':
|
errors = {'invitation':
|
||||||
['Your invitation to GOV.UK Notify has expired. Please ask the person that invited you to send you another one']}
|
['Your invitation to GOV.UK Notify has expired. '
|
||||||
|
'Please ask the person that invited you to send you another one']}
|
||||||
raise InvalidRequest(errors, status_code=400)
|
raise InvalidRequest(errors, status_code=400)
|
||||||
|
|
||||||
invited_user = get_invited_user_by_id(invited_user_id)
|
invited_user = get_invited_user_by_id(invited_user_id)
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ def test_accept_invite_for_expired_token_returns_400(notify_api, sample_invited_
|
|||||||
json_resp = json.loads(response.get_data(as_text=True))
|
json_resp = json.loads(response.get_data(as_text=True))
|
||||||
assert json_resp['result'] == 'error'
|
assert json_resp['result'] == 'error'
|
||||||
assert json_resp['message'] == {'invitation': [
|
assert json_resp['message'] == {'invitation': [
|
||||||
'This invitation has expired please contact the person that invited you to invite you again']}
|
'Your invitation to GOV.UK Notify has expired. '
|
||||||
|
'Please ask the person that invited you to send you another one']}
|
||||||
|
|
||||||
|
|
||||||
def test_accept_invite_returns_200_when_token_valid(notify_api, sample_invited_user):
|
def test_accept_invite_returns_200_when_token_valid(notify_api, sample_invited_user):
|
||||||
|
|||||||
Reference in New Issue
Block a user