From 14eec5f99b3232f57cfc228318e5e044aad35fec Mon Sep 17 00:00:00 2001 From: hklarner Date: Tue, 4 Jul 2023 17:36:26 +0200 Subject: [PATCH] notifications/templates: wording change event invitation mail #7427 --- .../emails/notify_followers_event_upcomming.en.email | 2 +- changelog/7427.md | 3 +++ tests/notifications/test_follower_notifications.py | 4 +--- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 changelog/7427.md diff --git a/apps/notifications/templates/a4_candy_notifications/emails/notify_followers_event_upcomming.en.email b/apps/notifications/templates/a4_candy_notifications/emails/notify_followers_event_upcomming.en.email index 9e5a9ad1f..64969fcf0 100644 --- a/apps/notifications/templates/a4_candy_notifications/emails/notify_followers_event_upcomming.en.email +++ b/apps/notifications/templates/a4_candy_notifications/emails/notify_followers_event_upcomming.en.email @@ -1,7 +1,7 @@ {% extends 'email_base.'|add:part_type %} {% load i18n %} -{% block subject %}{% blocktranslate with project_name=action.project.name %}Invitation to an event in project {{ project_name }}{% endblocktranslate %}{% endblock %} +{% block subject %}{% blocktranslate with project_name=action.project.name %}Event in project {{ project_name }}{% endblocktranslate %}{% endblock %} {% block headline %}{% blocktranslate %}Event{% endblocktranslate %}{% endblock %} {% block sub-headline %}{{ action.project.name }}{% endblock %} diff --git a/changelog/7427.md b/changelog/7427.md new file mode 100644 index 000000000..d12b06ae8 --- /dev/null +++ b/changelog/7427.md @@ -0,0 +1,3 @@ +### Changed + +- changed wording of emails of event notifications diff --git a/tests/notifications/test_follower_notifications.py b/tests/notifications/test_follower_notifications.py index 4ec174a5b..5d84ef2ad 100644 --- a/tests/notifications/test_follower_notifications.py +++ b/tests/notifications/test_follower_notifications.py @@ -9,7 +9,6 @@ @pytest.mark.django_db def test_notify_follower_on_phase_started(phase_factory): - phase = phase_factory( start_date=parse("2022-01-01 17:00:00 UTC"), end_date=parse("2022-05-01 18:00:00 UTC"), @@ -24,7 +23,6 @@ def test_notify_follower_on_phase_started(phase_factory): @pytest.mark.django_db def test_notify_follower_on_phase_over_soon(phase_factory): - phase = phase_factory( start_date=parse("2022-01-01 17:00:00 UTC"), end_date=parse("2022-05-01 18:00:00 UTC"), @@ -47,4 +45,4 @@ def test_notify_follower_on_upcoming_event(offline_event_factory): call_command("create_offlineevent_system_actions") assert len(mail.outbox) == 1 - assert mail.outbox[0].subject.startswith("Invitation to an event in project ") + assert mail.outbox[0].subject.startswith("Event in project ")