chore: test cases

This commit is contained in:
salman2013
2023-10-12 15:01:14 +05:00
parent 5bbc17fd05
commit f2bf289021
2 changed files with 4 additions and 1 deletions

View File

@@ -43,6 +43,9 @@ class FeatureBasedEnrollmentSupportAPIView(GenericAPIView):
Support-only API View for getting feature based enrollment configuration details
for a course.
"""
authentication_classes = (
JwtAuthentication, SessionAuthentication
)
permission_classes = (IsAuthenticated,)
@method_decorator(require_support_permission)

View File

@@ -10,7 +10,7 @@ from edx_rest_framework_extensions.auth.session.authentication import SessionAut
from opaque_keys import InvalidKeyError
from opaque_keys.edx import locator
from opaque_keys.edx.keys import CourseKey
from rest_framework import authentication, generics, status, viewsets
from rest_framework import generics, status, viewsets
from rest_framework.exceptions import ParseError
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView