mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user