From db033fe6fca063da6c612580acc6fa42c039f0aa Mon Sep 17 00:00:00 2001 From: wbanks Date: Fri, 16 Feb 2024 13:31:49 -0400 Subject: [PATCH] Fix tests --- tests/app/dao/test_services_dao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/dao/test_services_dao.py b/tests/app/dao/test_services_dao.py index fe6943c9fe..46941c9887 100644 --- a/tests/app/dao/test_services_dao.py +++ b/tests/app/dao/test_services_dao.py @@ -1434,7 +1434,7 @@ def test_dao_fetch_todays_total_message_count_returns_0_with_yesterday_messages( notification = save_notification( create_notification( created_at=yesterday, - template=create_template(service=create_service(), template_type="email"), + template=create_template(service=create_service(service_name="tester123"), template_type="email"), ) ) assert fetch_todays_total_message_count(notification.service.id) == 0 @@ -1442,7 +1442,7 @@ def test_dao_fetch_todays_total_message_count_returns_0_with_yesterday_messages( def test_dao_fetch_todays_total_message_count_counts_notifications_in_jobs_scheduled_for_today( self, notify_db, notify_db_session ): - service = create_service() + service = create_service(service_name="tester12") template = create_template(service=service, template_type="email") today = datetime.utcnow().date()