add new notification status 'sent'

for international text messages, when we may not ever receive callback info,
so we need a separate status that doesn't get timed out etc
This commit is contained in:
Leo Hemsted
2017-04-25 17:08:29 +01:00
parent c87be0f982
commit 02e8f454e1
5 changed files with 10 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ def test_get_notifications_request_invalid_statuses(
invalid_statuses, valid_statuses
):
partial_error_status = "is not one of " \
"[created, sending, delivered, pending, failed, " \
"[created, sending, sent, delivered, pending, failed, " \
"technical-failure, temporary-failure, permanent-failure]"
with pytest.raises(ValidationError) as e:
@@ -74,7 +74,7 @@ def test_get_notifications_request_invalid_statuses_and_template_types():
error_messages = [error['message'] for error in errors]
for invalid_status in ["elephant", "giraffe"]:
assert "status {} is not one of [created, sending, delivered, " \
assert "status {} is not one of [created, sending, sent, delivered, " \
"pending, failed, technical-failure, temporary-failure, permanent-failure]".format(
invalid_status
) in error_messages