fix: test cases fixed

This commit is contained in:
ayeshoali
2022-11-24 14:04:23 +05:00
parent 67bbf46920
commit 1363fcb501
3 changed files with 4 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ from rest_framework.response import Response
from common.djangoapps.student.roles import (
CourseInstructorRole,
CourseStaffRole,
GlobalStaff,
)
from lms.djangoapps.course_blocks.api import get_course_blocks

View File

@@ -201,6 +201,8 @@ class GetCourseTest(ForumsEnableMixin, UrlResetMixin, SharedModuleStoreTestCase)
'group_at_subsection': False,
'provider': 'legacy',
'has_moderation_privileges': False,
"is_course_staff": False,
"is_course_admin": False,
'is_group_ta': False,
'is_user_admin': False,
'user_roles': {'Student'},

View File

@@ -521,6 +521,8 @@ class CourseViewTest(DiscussionAPIViewTestMixin, ModuleStoreTestCase):
"allow_anonymous": True,
"allow_anonymous_to_peers": False,
"has_moderation_privileges": False,
'is_course_admin': False,
'is_course_staff': False,
"is_group_ta": False,
'is_user_admin': False,
"user_roles": ["Student"],