FIX: update email tests, after changing the email templates.

This commit is contained in:
2019-08-29 10:28:25 +02:00
parent 749ac8271d
commit 51f276d719
2 changed files with 19 additions and 9 deletions

View File

@@ -145,13 +145,21 @@ Der folgende Link führt zur Veranstaltung:
Veröffentlichung: (sofort)
=================
Veröffentlichung starten: --
Veröffentlichung beenden: {day_after_short} 00:00:00
Erstellungsdatum: {first_day_short} 00:00:00
Titel: {number} - {title}
Titel: {number} {title}
Ausschreibung:
==============
{event_text}"""
{number} {title}
{normalized_long_date}
{description}
Leitung: {trainer_firstname} {trainer_familyname} (trainer@localhost)
"""
class EmailTestCase(EmailTestMixin, RoleMixin, EventMixin, TestCase):
@@ -369,6 +377,6 @@ class EmailTestCase(EmailTestMixin, RoleMixin, EventMixin, TestCase):
description=self.event.description,
first_day_short=self.event.first_day.strftime('%d.%m.%Y'),
day_after_short=(self.event.first_day + datetime.timedelta(1)).strftime('%d.%m.%Y'),
event_text=self.event.render_as_text(),
normalized_long_date=self.event.get_formated_date(format='normalized_long'),
)
self.assertBody(mail, expected_body)