merge from main

This commit is contained in:
Kenneth Kehl
2025-01-16 13:22:38 -08:00
19 changed files with 309 additions and 49 deletions

View File

@@ -263,7 +263,9 @@ def test_send_notification_to_queue(
send_notification_to_queue(notification=notification, queue=requested_queue)
mocked.assert_called_once_with([str(notification.id)], queue=expected_queue)
mocked.assert_called_once_with(
[str(notification.id)], queue=expected_queue, countdown=60
)
def test_send_notification_to_queue_throws_exception_deletes_notification(
@@ -276,8 +278,7 @@ def test_send_notification_to_queue_throws_exception_deletes_notification(
with pytest.raises(Boto3Error):
send_notification_to_queue(sample_notification, False)
mocked.assert_called_once_with(
[(str(sample_notification.id))],
queue="send-sms-tasks",
[(str(sample_notification.id))], queue="send-sms-tasks", countdown=60
)
assert _get_notification_query_count() == 0