From 7de239c66087ae52568c63badbef89590d3aa275 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 4 Mar 2025 10:57:41 -0800 Subject: [PATCH] fix test --- .../dao/test_fact_notification_status_dao.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/app/dao/test_fact_notification_status_dao.py b/tests/app/dao/test_fact_notification_status_dao.py index 9c58b0b32..405b4a104 100644 --- a/tests/app/dao/test_fact_notification_status_dao.py +++ b/tests/app/dao/test_fact_notification_status_dao.py @@ -80,20 +80,20 @@ def test_fetch_notification_status_for_service_by_month(notify_db_session): print(results) assert len(results) == 3 + assert results[0].month.date() == date(2018, 1, 1) + assert results[0].notification_type == NotificationType.SMS + assert results[0].notification_status == NotificationStatus.CREATED + assert results[0].count == 1 + assert results[1].month.date() == date(2018, 1, 1) assert results[1].notification_type == NotificationType.SMS - assert results[1].notification_status == NotificationStatus.CREATED - assert results[1].count == 1 + assert results[1].notification_status == NotificationStatus.DELIVERED + assert results[1].count == 14 - assert results[2].month.date() == date(2018, 1, 1) + assert results[2].month.date() == date(2018, 2, 1) assert results[2].notification_type == NotificationType.SMS assert results[2].notification_status == NotificationStatus.DELIVERED - assert results[2].count == 14 - - assert results[3].month.date() == date(2018, 2, 1) - assert results[3].notification_type == NotificationType.SMS - assert results[3].notification_status == NotificationStatus.DELIVERED - assert results[3].count == 1 + assert results[2].count == 1 def test_fetch_notification_status_for_service_for_day(notify_db_session):