Commit afb2b91c by Mushtaq Ali Committed by muzaffaryousaf

Change transcript status text - EDUCATOR-1324

parent 3d7e9200
...@@ -1017,12 +1017,12 @@ class VideoStatusViewTest(APIAuthTestCase): ...@@ -1017,12 +1017,12 @@ class VideoStatusViewTest(APIAuthTestCase):
'status_code': status.HTTP_400_BAD_REQUEST, 'status_code': status.HTTP_400_BAD_REQUEST,
}, },
{ {
'patch_data': {'edx_video_id': 'fake', 'status': 'transcription_ready'}, 'patch_data': {'edx_video_id': 'fake', 'status': 'transcript_ready'},
'message': u'Video is not found for specified edx_video_id: fake', 'message': u'Video is not found for specified edx_video_id: fake',
'status_code': status.HTTP_400_BAD_REQUEST, 'status_code': status.HTTP_400_BAD_REQUEST,
}, },
{ {
'patch_data': {'edx_video_id': 'super-soaker', 'status': 'transcription_ready'}, 'patch_data': {'edx_video_id': 'super-soaker', 'status': 'transcript_ready'},
'message': None, 'message': None,
'status_code': status.HTTP_200_OK, 'status_code': status.HTTP_200_OK,
}, },
......
...@@ -25,7 +25,7 @@ LOGGER = logging.getLogger(__name__) # pylint: disable=C0103 ...@@ -25,7 +25,7 @@ LOGGER = logging.getLogger(__name__) # pylint: disable=C0103
VALID_VIDEO_STATUSES = [ VALID_VIDEO_STATUSES = [
'transcription_in_progress', 'transcription_in_progress',
'transcription_ready', 'transcript_ready',
] ]
...@@ -170,7 +170,7 @@ class VideoStatusView(APIView): ...@@ -170,7 +170,7 @@ class VideoStatusView(APIView):
A Video View to update the status of a video. A Video View to update the status of a video.
Note: Note:
Currently, the valid statuses are `transcription_in_progress` and `transcription_ready` because it Currently, the valid statuses are `transcription_in_progress` and `transcript_ready` because it
was intended to only be used for video transcriptions but if you found it helpful to your needs, you was intended to only be used for video transcriptions but if you found it helpful to your needs, you
can add more statuses so that you can use it for updating other video statuses too. can add more statuses so that you can use it for updating other video statuses too.
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment