This commit is contained in:
Kenneth Kehl
2024-10-28 14:20:54 -07:00
parent 61cf576faf
commit 4d276ad4fe

View File

@@ -84,23 +84,22 @@ def test_fetch_notification_status_for_service_by_month(notify_db_session):
print(results)
assert results[0].month.date() == date(2018, 1, 1)
# assert results[0].notification_type == NotificationType.EMAIL
# TODO fix/investigate
# assert results[0].notification_status == NotificationStatus.DELIVERED
assert results[0].notification_type == NotificationType.EMAIL
assert results[0].notification_status == NotificationStatus.DELIVERED
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_type == NotificationType.SMS
assert results[1].notification_status == NotificationStatus.CREATED
assert results[1].count == 1
assert results[2].month.date() == date(2018, 1, 1)
# assert results[2].notification_type == NotificationType.SMS
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_type == NotificationType.SMS
assert results[3].notification_status == NotificationStatus.DELIVERED
assert results[3].count == 1