Document behaviour of s3 letter deleting

The behaviour was a bit of opaque so I have added tests around it so
it's clear what it is doing and why. No functionality has changed
This commit is contained in:
David McDonald
2020-12-16 10:39:31 +00:00
parent 219023f4c6
commit 1bf9b29905
3 changed files with 48 additions and 6 deletions

View File

@@ -256,7 +256,7 @@ def create_notification(
if to_field is None:
to_field = '+447700900855' if template.template_type == SMS_TYPE else 'test@example.com'
if status != 'created':
if status not in ('created', 'validation-failed', 'virus-scan-failed', 'pending-virus-check'):
sent_at = sent_at or datetime.utcnow()
updated_at = updated_at or datetime.utcnow()