Katie Smith
2020-05-20 18:28:35 +01:00
parent 5f46d7ba3e
commit 0b28766442
7 changed files with 15 additions and 163 deletions

View File

@@ -2343,8 +2343,7 @@ def test_create_pdf_letter(mocker, sample_service_full_permissions, client, fake
{"postage": "third", "filename": "string", "created_by": "string", "file_id": "string",
"recipient_address": "Some Address"},
[
{'error': 'ValidationError',
'message': 'postage invalid. It must be first, second, europe or rest-of-world.'}
{'error': 'ValidationError', 'message': 'postage invalid. It must be either first or second.'}
]
)
])

View File

@@ -636,7 +636,7 @@ def test_post_letter_notification_throws_error_for_invalid_postage(client, notif
assert response.status_code == 400, response.get_data(as_text=True)
resp_json = json.loads(response.get_data(as_text=True))
assert resp_json['errors'][0]['message'] == "postage invalid. It must be first, second, europe or rest-of-world."
assert resp_json['errors'][0]['message'] == "postage invalid. It must be either first or second."
assert not Notification.query.first()