More tweaks, trying to get tests to be clean.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-10 11:18:33 -05:00
parent 908d695b54
commit ac9591ec7c
18 changed files with 37 additions and 29 deletions

View File

@@ -2,6 +2,7 @@ from app import performance_platform_client
from app.dao.fact_notification_status_dao import (
get_total_sent_notifications_for_day_and_type,
)
from app.models import NotificationType
# TODO: is this obsolete? it doesn't seem to be used anywhere
@@ -19,8 +20,8 @@ def send_total_notifications_sent_for_day_stats(start_time, notification_type, c
# TODO: is this obsolete? it doesn't seem to be used anywhere
def get_total_sent_notifications_for_day(day):
email_count = get_total_sent_notifications_for_day_and_type(day, "email")
sms_count = get_total_sent_notifications_for_day_and_type(day, "sms")
email_count = get_total_sent_notifications_for_day_and_type(day, NotificationType.EMAIL)
sms_count = get_total_sent_notifications_for_day_and_type(day, NotificationType.SMS)
return {
"email": email_count,