From 6b6061a73055b9f061431ecea44c971cf48dafce Mon Sep 17 00:00:00 2001 From: bsilkyn Date: Wed, 22 May 2024 18:33:54 +0200 Subject: [PATCH] test: course make and course enroll test with id's applied where necessary #434 --- backend/authentication/views.py | 1 + frontend/src/components/courses/CourseDetailCard.vue | 2 +- frontend/src/components/courses/CourseDetailList.vue | 2 +- frontend/src/components/courses/CourseForm.vue | 2 +- .../courses/students/StudentCourseJoinButton.vue | 1 + frontend/src/components/projects/ProjectList.vue | 2 +- .../views/dashboard/roles/TeacherDashboardView.vue | 12 ++++++++---- test.sh | 7 ++++--- 8 files changed, 18 insertions(+), 11 deletions(-) diff --git a/backend/authentication/views.py b/backend/authentication/views.py index ca985f31..f5745821 100644 --- a/backend/authentication/views.py +++ b/backend/authentication/views.py @@ -105,6 +105,7 @@ def login_professor(self, request, *__) -> Response: user, created = create_user(self, request, settings.TEST_PROFESSOR_DATA) if created: Teacher.create(user) + return response @action(detail=False, methods=['POST'], permission_classes=[IsDebug], url_path='multi') def login_multi(self, request, *__) -> Response: diff --git a/frontend/src/components/courses/CourseDetailCard.vue b/frontend/src/components/courses/CourseDetailCard.vue index 049ee0f3..ce92fc59 100644 --- a/frontend/src/components/courses/CourseDetailCard.vue +++ b/frontend/src/components/courses/CourseDetailCard.vue @@ -19,7 +19,7 @@ const { getImport } = useGlob(import.meta.glob('@/assets/img/faculties/*.png', { @@ -95,7 +99,7 @@ watchImmediate( - +