chore: constraint was fixed, fixed blocked fixme

This commit is contained in:
Livio Bieri 2024-02-21 11:40:30 +01:00
parent de351bb3c1
commit 0d402d7912
1 changed files with 16 additions and 14 deletions

View File

@ -12,9 +12,13 @@ from vbv_lernwelt.core.constants import (
TEST_STUDENT2_USER_ID,
TEST_STUDENT3_USER_ID,
TEST_TRAINER1_USER_ID,
TEST_STUDENT1_VV_USER_ID,
)
from vbv_lernwelt.core.models import Organisation, User
from vbv_lernwelt.course.consts import COURSE_TEST_ID
from vbv_lernwelt.course.consts import (
COURSE_TEST_ID,
COURSE_VERSICHERUNGSVERMITTLERIN_ID,
)
from vbv_lernwelt.course.creators.test_course import (
create_edoniq_test_result_data,
create_feedback_response_data,
@ -345,19 +349,17 @@ def command(
)
)
# FIXME: Add mentor to VV course as well, once we can:
# -> https://bitbucket.org/iterativ/vbv_lernwelt/pull-requests/287
# vv_course = Course.objects.get(id=COURSE_VERSICHERUNGSVERMITTLERIN_ID)
# vv_course_session = CourseSession.objects.get(course=vv_course)
# vv_mentor = LearningMentor.objects.create(
# course=vv_course,
# mentor=User.objects.get(id=TEST_MENTOR1_USER_ID),
# )
# vv_mentor.participants.add(
# CourseSessionUser.objects.get(
# user__id=TEST_STUDENT1_VV_USER_ID, course_session=vv_course_session
# )
# )
vv_course = Course.objects.get(id=COURSE_VERSICHERUNGSVERMITTLERIN_ID)
vv_course_session = CourseSession.objects.get(course=vv_course)
vv_mentor = LearningMentor.objects.create(
course=vv_course,
mentor=User.objects.get(id=TEST_MENTOR1_USER_ID),
)
vv_mentor.participants.add(
CourseSessionUser.objects.get(
user__id=TEST_STUDENT1_VV_USER_ID, course_session=vv_course_session
)
)
course = Course.objects.get(id=COURSE_TEST_ID)
course.enable_circle_documents = enable_circle_documents