Fix unit tests

This commit is contained in:
Ramon Wenger 2020-02-26 13:22:22 +01:00
parent 1c71c24ea0
commit f4a98e50ba
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ def create_users(data=None):
)
teacher2 = UserFactory(username='teacher2')
UserRole.objects.create(user=teacher2, role=teacher_role)
student_second_class = UserFactory(username='student_second_class')
UserRole.objects.create(user=student_second_class, role=student_role)
student_second_class = create_student(username='student_second_class')
SchoolClassFactory(
users=[teacher2, student_second_class],
name='second_class'