From de38f38892edcfa21d9da0e7f875302921d8f64c Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 7 Mar 2024 09:45:21 -0800 Subject: [PATCH] fix test --- app/main/views/jobs.py | 2 +- tests/app/main/views/test_activity.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index 6e22a82e2..3f48cb9ec 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -288,7 +288,7 @@ def get_status_filters(service, message_type, statistics): filters = [ # key, label, option ("requested", "total", "sending,delivered,failed"), - ("sending", "pending", "pending"), + ("pending", "pending", "pending"), ("delivered", "delivered", "delivered"), ("failed", "failed", "failed"), ] diff --git a/tests/app/main/views/test_activity.py b/tests/app/main/views/test_activity.py index e224c2e7d..936bfac80 100644 --- a/tests/app/main/views/test_activity.py +++ b/tests/app/main/views/test_activity.py @@ -531,7 +531,7 @@ def test_time_left(job_created_at, expected_message): assert get_time_left(job_created_at) == expected_message -STATISTICS = {"sms": {"requested": 6, "failed": 2, "delivered": 1}} +STATISTICS = {"sms": {"requested": 6, "failed": 2, "delivered": 1, "pending": 3}} def test_get_status_filters_calculates_stats(client_request):