Fix unit tests
This commit is contained in:
parent
2c0039be42
commit
ff3372c525
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue