Commit 5f36fefc authored by Michal Čihař's avatar Michal Čihař

Create all test users with valid email

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 785c6d19
......@@ -67,8 +67,9 @@ class NotificationTest(ViewTestCase):
def second_user(self):
user = User.objects.create_user(
username='seconduser',
password='secondpassword'
'seconduser',
'noreply@example.org',
'testpassword'
)
return user
......
......@@ -101,8 +101,9 @@ class ProjectTest(RepoTestCase):
"""
# Create user to verify ACL
user = User.objects.create_user(
username='testuser',
password='testpassword'
'testuser',
'noreply@example.com',
'testpassword'
)
# Create project
......
......@@ -93,8 +93,10 @@ class GroupACLTest(ModelTestCase):
def setUp(self):
super(GroupACLTest, self).setUp()
self.user = User.objects.create(username="user")
self.privileged = User.objects.create(username="privileged")
self.user = User.objects.create("user", 'test@example.com', 'x')
self.privileged = User.objects.create(
"privileged", 'other@example.com', 'x'
)
self.group = Group.objects.create(name="testgroup")
self.project = self.subproject.project
self.subproject.translation_set.all().delete()
......
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