Unverified Commit 13382025 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg Committed by Thom Wiggers
Browse files

Add user without email to members emails test

parent 4b3a7685
...@@ -11,6 +11,21 @@ class EmailsTest(TestCase): ...@@ -11,6 +11,21 @@ class EmailsTest(TestCase):
@classmethod @classmethod
def setUpTestData(cls): def setUpTestData(cls):
cls.member_no_mail = Member.objects.create(
username='no_mail_test',
first_name='Nomail',
last_name='Example'
)
Profile.objects.create(
user=cls.member_no_mail,
language='en',
)
Membership.objects.create(
user=cls.member_no_mail,
type=Membership.MEMBER,
since=timezone.now().replace(year=2017, month=9, day=1),
until=timezone.now().replace(year=2018, month=9, day=1)
)
cls.year_member_nl = Member.objects.create( cls.year_member_nl = Member.objects.create(
username='test1', username='test1',
first_name='Test1', first_name='Test1',
......
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