From b373594465935193d66ec15f93bfee2dc1e789ce Mon Sep 17 00:00:00 2001 From: vincent porte Date: Mon, 2 Dec 2024 11:39:17 +0100 Subject: [PATCH] simplify params for SIB_NEW_MESSAGES_TEMPLATE --- lacommunaute/notification/tasks.py | 1 - lacommunaute/notification/tests/tests_tasks.py | 1 - 2 files changed, 2 deletions(-) diff --git a/lacommunaute/notification/tasks.py b/lacommunaute/notification/tasks.py index 63156821..db90a022 100644 --- a/lacommunaute/notification/tasks.py +++ b/lacommunaute/notification/tasks.py @@ -30,7 +30,6 @@ def get_grouped_notifications(): message_count_text = f"{message_count} message{pluralize(message_count, 's')}" params = { - "email_object": "Bonne nouvelle, ça bouge pour vous dans la communauté !", "email_thumbnail": (f"Vous avez {message_count_text} à découvrir sur la communauté de l'inclusion"), "messages": get_serialized_messages(recipient_notifications[:NEW_MESSAGES_EMAIL_MAX_PREVIEW]), } diff --git a/lacommunaute/notification/tests/tests_tasks.py b/lacommunaute/notification/tests/tests_tasks.py index 07905e17..75d97e94 100644 --- a/lacommunaute/notification/tests/tests_tasks.py +++ b/lacommunaute/notification/tests/tests_tasks.py @@ -55,7 +55,6 @@ def get_expected_email_payload(self, notifications): message_count_text = f"{message_count} message{pluralize(message_count, 's')}" params = { - "email_object": "Bonne nouvelle, ça bouge pour vous dans la communauté !", "email_thumbnail": (f"Vous avez {message_count_text} à découvrir sur la communauté de l'inclusion"), "messages": get_serialized_messages(recipient_notifications[:NEW_MESSAGES_EMAIL_MAX_PREVIEW]), }