Commit 3ca29495 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Merge branch 'fix/registration-tests' into 'master'

Fix registrations tests

See merge request !968
parents 937a5b1d f8c2d58a
...@@ -265,7 +265,7 @@ class Registration(Entry): ...@@ -265,7 +265,7 @@ class Registration(Entry):
'Login using the existing account and renew the ' 'Login using the existing account and renew the '
'membership by visiting the account settings.')}) 'membership by visiting the account settings.')})
elif (self.student_number is None and elif (self.student_number is None and
self.membership_type != Membership.SUPPORTER): self.membership_type != Membership.BENEFACTOR):
errors.update({ errors.update({
'student_number': _('This field is required.')}) 'student_number': _('This field is required.')})
......
...@@ -155,7 +155,7 @@ class RegistrationTest(TestCase): ...@@ -155,7 +155,7 @@ class RegistrationTest(TestCase):
with self.subTest('Type is benefactor'): with self.subTest('Type is benefactor'):
self.registration.student_number = None self.registration.student_number = None
self.registration.membership_type = Membership.SUPPORTER self.registration.membership_type = Membership.BENEFACTOR
self.registration.clean() self.registration.clean()
def test_unique_username_user(self): def test_unique_username_user(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment