support for reduced fee #31
@@ -37,6 +37,7 @@ Here
|
||||
Telefon: 12
|
||||
E-Mail: {participant_email}
|
||||
Jahrgang: {year_of_birth}
|
||||
Antrag auf reduzierte Teilnahmegebühr: {apply_reduced_fee_yesno}
|
||||
DAV Mitgliedsnummer: 0
|
||||
|
||||
Notfall-Kontakt
|
||||
@@ -71,6 +72,7 @@ Here, 1 Karlsruhe
|
||||
12
|
||||
{participant_email}
|
||||
0
|
||||
Antrag auf reduzierte Teilnahmegebühr: {apply_reduced_fee_yesno}
|
||||
|
||||
Notfall-Kontakt:
|
||||
-
|
||||
@@ -136,6 +138,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
participant_full_name=registration.get_full_name(),
|
||||
participant_email=registration.email_address,
|
||||
year_of_birth=registration.year_of_birth,
|
||||
apply_reduced_fee_yesno='Nein',
|
||||
event_number=event.get_number(),
|
||||
event_title=event.title,
|
||||
event_formated_date=event.get_formated_date(),
|
||||
@@ -160,9 +163,10 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
'postal_code': '76131',
|
||||
'city': 'Karlsruhe',
|
||||
'phone_number': '+49 721 1234567890 AB (Büro)',
|
||||
'year_of_birth': 1976,
|
||||
'apply_reduced_fee': True,
|
||||
'dav_member': False,
|
||||
'dav_number': '131/00/007*12345',
|
||||
'year_of_birth': 1976,
|
||||
'emergency_contact': 'Call 911!',
|
||||
'experience': 'Yes, we can!',
|
||||
'note': 'Automatischer Software Test\nGruß\n heinzel =u}',
|
||||
@@ -180,6 +184,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
search += 'Telefon: {}\n'.format(registration_data['phone_number'])
|
||||
search += 'E-Mail: {}\n'.format(registration_data['email_address'])
|
||||
search += 'Jahrgang: {}\n'.format(registration_data['year_of_birth'])
|
||||
search += 'Antrag auf reduzierte Teilnahmegebühr: Ja\n'
|
||||
search += 'DAV Mitglied: Nein\n'
|
||||
self.assertIn(search, mail.body)
|
||||
|
||||
@@ -245,6 +250,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
participant_email=registration.email_address,
|
||||
year_of_birth=registration.year_of_birth,
|
||||
approx_age=registration.approx_age(),
|
||||
apply_reduced_fee_yesno='Nein',
|
||||
event_number=event.get_number(),
|
||||
event_title=event.title,
|
||||
event_formated_date=event.get_formated_date(),
|
||||
@@ -268,9 +274,10 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
'postal_code': '76131',
|
||||
'city': 'Karlsruhe',
|
||||
'phone_number': '+49 721 1234567890 AB (Büro)',
|
||||
'year_of_birth': THIS_YEAR,
|
||||
'apply_reduced_fee': True,
|
||||
'dav_member': False,
|
||||
'dav_number': '131/00/007*12345',
|
||||
'year_of_birth': THIS_YEAR,
|
||||
'emergency_contact': 'Call 911!',
|
||||
'experience': 'Yes, we can!',
|
||||
'note': 'Automatischer Software Test\nGruß\n heinzel =u}',
|
||||
@@ -288,8 +295,8 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
search += '\n'
|
||||
search += registration_data['email_address']
|
||||
search += '\n'
|
||||
search += 'Nicht DAV Mitglied'
|
||||
search += '\n'
|
||||
search += 'Nicht DAV Mitglied\n'
|
||||
search += 'Antrag auf reduzierte Teilnahmegebühr: Ja\n'
|
||||
self.assertIn(search, mail.body)
|
||||
|
||||
search = '\n'
|
||||
|
||||
Reference in New Issue
Block a user