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:
@@ -29,6 +29,16 @@ class UtilsTestCase(RegistrationMixin, EventMixin, TestCase):
|
||||
'trainer_familyname': 'One',
|
||||
'trainer_email': 'trainer@localhost',
|
||||
}
|
||||
registration_data = {
|
||||
'personal_names': 'Participant',
|
||||
'family_names': 'P.',
|
||||
'address': 'Am Fächerbad 2',
|
||||
'postal_code': '76131',
|
||||
'city': 'Karlsruhe',
|
||||
'phone_number': '555 5555',
|
||||
'email_address': 'participant@localhost',
|
||||
'dav_number': '1',
|
||||
}
|
||||
|
||||
first_day = today - (one_day * 367)
|
||||
while first_day < today:
|
||||
@@ -41,7 +51,9 @@ class UtilsTestCase(RegistrationMixin, EventMixin, TestCase):
|
||||
self.accept_event(event)
|
||||
|
||||
for i in range(0, registrations_per_event):
|
||||
self.create_registration({'event': event})
|
||||
d = registration_data
|
||||
d['event'] = event
|
||||
self.create_registration(d)
|
||||
|
||||
purge_registrations()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user