Fix #9 Registrations: Add support for non members
All checks were successful
buildbot/tox Build done.
All checks were successful
buildbot/tox Build done.
This commit is contained in:
@@ -32,11 +32,11 @@ Vorgang: {registration_hexstr} (wird nur gebraucht, wenn irgendwas schief geht)
|
||||
Personendaten
|
||||
-------------
|
||||
{participant_full_name}
|
||||
|
||||
|
||||
Telefon:
|
||||
Here
|
||||
1 Karlsruhe
|
||||
Telefon: 12
|
||||
E-Mail: {participant_email}
|
||||
DAV Mitgliedsnummer:
|
||||
DAV Mitgliedsnummer: 0
|
||||
|
||||
Notfall-Kontakt
|
||||
---------------
|
||||
@@ -66,10 +66,10 @@ Vorgang: {registration_hexstr}
|
||||
|
||||
Teilnehmer*in:
|
||||
{participant_full_name}
|
||||
,
|
||||
|
||||
Here, 1 Karlsruhe
|
||||
12
|
||||
{participant_email}
|
||||
|
||||
0
|
||||
|
||||
Notfall-Kontakt:
|
||||
-
|
||||
@@ -107,7 +107,12 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
'event': event,
|
||||
'personal_names': 'Participant',
|
||||
'family_names': 'One',
|
||||
'address': 'Here',
|
||||
'postal_code': '1',
|
||||
'city': 'Karlsruhe',
|
||||
'phone_number': '12',
|
||||
'email_address': 'participant@localhost',
|
||||
'dav_number': '0',
|
||||
}
|
||||
registration = self.create_registration(registration_data)
|
||||
|
||||
@@ -150,6 +155,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
'postal_code': '76131',
|
||||
'city': 'Karlsruhe',
|
||||
'phone_number': '+49 721 1234567890 AB (Büro)',
|
||||
'dav_member': False,
|
||||
'dav_number': '131/00/007*12345',
|
||||
'emergency_contact': 'Call 911!',
|
||||
'experience': 'Yes, we can!',
|
||||
@@ -167,7 +173,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
search += '{} {}\n'.format(registration_data['postal_code'], registration_data['city'])
|
||||
search += 'Telefon: {}\n'.format(registration_data['phone_number'])
|
||||
search += 'E-Mail: {}\n'.format(registration_data['email_address'])
|
||||
search += 'DAV Mitgliedsnummer: {}\n'.format(registration_data['dav_number'])
|
||||
search += 'DAV Mitglied: Nein\n'
|
||||
self.assertIn(search, mail.body)
|
||||
|
||||
search = '\n'
|
||||
@@ -204,7 +210,12 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
'event': event,
|
||||
'personal_names': 'Participant',
|
||||
'family_names': 'One',
|
||||
'address': 'Here',
|
||||
'postal_code': '1',
|
||||
'city': 'Karlsruhe',
|
||||
'phone_number': '12',
|
||||
'email_address': 'participant@localhost',
|
||||
'dav_number': '0',
|
||||
}
|
||||
registration = self.create_registration(registration_data)
|
||||
|
||||
@@ -247,6 +258,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
'postal_code': '76131',
|
||||
'city': 'Karlsruhe',
|
||||
'phone_number': '+49 721 1234567890 AB (Büro)',
|
||||
'dav_member': False,
|
||||
'dav_number': '131/00/007*12345',
|
||||
'emergency_contact': 'Call 911!',
|
||||
'experience': 'Yes, we can!',
|
||||
@@ -265,7 +277,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
|
||||
search += '\n'
|
||||
search += registration_data['email_address']
|
||||
search += '\n'
|
||||
search += registration_data['dav_number']
|
||||
search += 'Nicht DAV Mitglied'
|
||||
search += '\n'
|
||||
self.assertIn(search, mail.body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user