Fix unit tests

This commit is contained in:
Ramon Wenger 2020-07-10 15:25:29 +02:00
parent 2c0039be42
commit ff3372c525
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def create_users(data=None):
if data is None:
teacher = UserFactory(username='teacher')
UserRole.objects.create(user=teacher, role=teacher_role, onboarding_visited=True)
UserRole.objects.create(user=teacher, role=teacher_role)
students = []
for i in range(1, 7):
@ -35,7 +35,7 @@ def create_users(data=None):
name='skillbox',
)
teacher2 = UserFactory(username='teacher2')
UserRole.objects.create(user=teacher2, role=teacher_role, onboarding_visited=True)
UserRole.objects.create(user=teacher2, role=teacher_role)
student_second_class = create_student(username='student_second_class', onboarding_visited=True)
SchoolClassFactory(