mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Small updates:
* Make config use new provider sms template id * create_notification to account for created status * Small robustness addition to test
This commit is contained in:
@@ -1514,7 +1514,7 @@ def test_slow_provider_delivery_returns_for_delivered_notifications_only(
|
||||
slow_delivery = is_delivery_slow_for_provider(
|
||||
sent_at=now,
|
||||
provider='firetext',
|
||||
threshold=1,
|
||||
threshold=2,
|
||||
delivery_time=timedelta(minutes=5),
|
||||
service_id=sample_template.service.id,
|
||||
template_id=sample_template.id
|
||||
|
||||
@@ -75,11 +75,9 @@ def create_notification(
|
||||
if created_at is None:
|
||||
created_at = datetime.utcnow()
|
||||
|
||||
if sent_at is None:
|
||||
sent_at = datetime.utcnow()
|
||||
|
||||
if updated_at is None:
|
||||
updated_at = datetime.utcnow()
|
||||
if status != 'created':
|
||||
sent_at = sent_at or datetime.utcnow()
|
||||
updated_at = updated_at or datetime.utcnow()
|
||||
|
||||
data = {
|
||||
'id': uuid.uuid4(),
|
||||
|
||||
Reference in New Issue
Block a user