Skip to content

Commit

Permalink
notifications/templates: wording change event invitation mail #7427
Browse files Browse the repository at this point in the history
  • Loading branch information
hklarner committed Jul 5, 2023
1 parent 2ec3367 commit 14eec5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
3 changes: 3 additions & 0 deletions changelog/7427.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Changed

- changed wording of emails of event notifications
4 changes: 1 addition & 3 deletions tests/notifications/test_follower_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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"),
Expand All @@ -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 ")

0 comments on commit 14eec5f

Please sign in to comment.