Fix cypress tests
This commit is contained in:
parent
742d12edaa
commit
90393e76d0
|
|
@ -15,6 +15,7 @@ from vbv_lernwelt.course_session.models import (
|
||||||
CourseSessionEdoniqTest,
|
CourseSessionEdoniqTest,
|
||||||
)
|
)
|
||||||
from vbv_lernwelt.course_session.tests.test_attendance_export import ExportBaseTestCase
|
from vbv_lernwelt.course_session.tests.test_attendance_export import ExportBaseTestCase
|
||||||
|
from vbv_lernwelt.learnpath.models import LearningContentAssignment
|
||||||
|
|
||||||
|
|
||||||
class AssignmentCompletionExportTestCase(ExportBaseTestCase):
|
class AssignmentCompletionExportTestCase(ExportBaseTestCase):
|
||||||
|
|
@ -163,6 +164,13 @@ class AssignmentCompletionExportTestCase(ExportBaseTestCase):
|
||||||
self._check_export(wb, expected_data, 4, 6)
|
self._check_export(wb, expected_data, 4, 6)
|
||||||
|
|
||||||
def test_export_multiple_cs(self):
|
def test_export_multiple_cs(self):
|
||||||
|
csa = CourseSessionAssignment.objects.create(
|
||||||
|
course_session=self.course_session_zh,
|
||||||
|
learning_content=LearningContentAssignment.objects.get(
|
||||||
|
slug=f"{self.course.slug}-lp-circle-fahrzeug-lc-überprüfen-einer-motorfahrzeug-versicherungspolice"
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
update_assignment_completion(
|
update_assignment_completion(
|
||||||
assignment_user=self.test_student2,
|
assignment_user=self.test_student2,
|
||||||
assignment=self.casework,
|
assignment=self.casework,
|
||||||
|
|
|
||||||
|
|
@ -282,13 +282,6 @@ def create_test_course(
|
||||||
)
|
)
|
||||||
csac.due_date.save()
|
csac.due_date.save()
|
||||||
|
|
||||||
_csa = CourseSessionAssignment.objects.create(
|
|
||||||
course_session=cs_zurich,
|
|
||||||
learning_content=LearningContentAssignment.objects.get(
|
|
||||||
slug=f"{course.slug}-lp-circle-fahrzeug-lc-überprüfen-einer-motorfahrzeug-versicherungspolice"
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
region1 = CourseSessionGroup.objects.create(
|
region1 = CourseSessionGroup.objects.create(
|
||||||
name="Region 1",
|
name="Region 1",
|
||||||
course=course,
|
course=course,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue