Always create AssignmentListPage for test course
This commit is contained in:
parent
198eb45236
commit
994d6dc41a
|
|
@ -94,12 +94,14 @@ def create_test_course(include_uk=True, include_vv=True, with_sessions=False):
|
|||
# create_locales_for_wagtail()
|
||||
course = create_test_course_with_categories()
|
||||
competence_certificate = create_test_competence_navi()
|
||||
if include_uk:
|
||||
|
||||
# assignments create assignments parent page
|
||||
course_page = CoursePage.objects.get(course_id=COURSE_TEST_ID)
|
||||
_assignment_list_page = AssignmentListPageFactory(
|
||||
parent=course_page,
|
||||
)
|
||||
|
||||
if include_uk:
|
||||
create_uk_fahrzeug_casework(
|
||||
course_id=COURSE_TEST_ID, competence_certificate=competence_certificate
|
||||
)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class TestRetrieveLearingPathContents(APITestCase):
|
|||
# topics and circles
|
||||
self.assertEqual(4, len(data["children"]))
|
||||
# circle "analyse" contents
|
||||
self.assertEqual(14, len(data["children"][3]["children"]))
|
||||
self.assertEqual(15, len(data["children"][3]["children"]))
|
||||
|
||||
def test_normalUser_withoutCourseSession_cannotAccess(self):
|
||||
self.user = User.objects.get(username="student")
|
||||
|
|
|
|||
Loading…
Reference in New Issue