Skip to content

Commit

Permalink
fix tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
whabanks committed Feb 16, 2024
1 parent 1ff4484 commit bf8d12b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/app/dao/test_services_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,15 +1434,15 @@ 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(service_name="tester"), template_type="email"),
template=create_template(service=create_service(), template_type="email"),
)
)
assert fetch_todays_total_message_count(notification.service.id) == 0

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_name="tester")
service = create_service()
template = create_template(service=service, template_type="email")
today = datetime.utcnow().date()

Expand All @@ -1466,7 +1466,7 @@ def test_dao_fetch_todays_total_message_count_counts_notifications_in_jobs_sched
def test_dao_fetch_todays_total_message_count_counts_notifications_in_jobs_scheduled_for_today_but_not_after_today(
self, notify_db, notify_db_session
):
service = create_service(service_name="tester")
service = create_service()
template = create_template(service=service, template_type="email")
today = datetime.utcnow().date()

Expand Down Expand Up @@ -1500,7 +1500,7 @@ def test_dao_fetch_todays_total_message_count_counts_notifications_in_jobs_sched
def test_dao_fetch_todays_total_message_count_counts_notifications_in_jobs_scheduled_for_today_but_not_before_today(
self, notify_db, notify_db_session
):
service = create_service(service_name="tester")
service = create_service()
template = create_template(service=service, template_type="email")
today = datetime.utcnow().date()

Expand Down

0 comments on commit bf8d12b

Please sign in to comment.