This commit is contained in:
Kenneth Kehl
2025-01-10 14:23:03 -08:00
parent 302e3ee798
commit 6f7c7d2d66
2 changed files with 7 additions and 6 deletions

View File

@@ -263,7 +263,7 @@ 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=30)
def test_send_notification_to_queue_throws_exception_deletes_notification(
@@ -278,6 +278,7 @@ def test_send_notification_to_queue_throws_exception_deletes_notification(
mocked.assert_called_once_with(
[(str(sample_notification.id))],
queue="send-sms-tasks",
countdown=30
)
assert _get_notification_query_count() == 0