Skip to content

Commit

Permalink
Add status: file_complete and pipeline_error
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-amir committed Apr 8, 2020
1 parent 36b6bec commit 446c529
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions edxval/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,16 @@ def setUp(self):
'message': None,
'status_code': status.HTTP_200_OK,
},
{
'patch_data': {'edx_video_id': 'super-soaker', 'status': 'file_complete'},
'message': None,
'status_code': status.HTTP_200_OK,
},
{
'patch_data': {'edx_video_id': 'super-soaker', 'status': 'pipeline_error'},
'message': None,
'status_code': status.HTTP_200_OK,
},
)
@unpack
def test_video_status(self, patch_data, message, status_code):
Expand Down
2 changes: 2 additions & 0 deletions edxval/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
LOGGER = logging.getLogger(__name__)

VALID_VIDEO_STATUSES = [
'file_complete',
'pipeline_error',
'transcription_in_progress',
'transcript_ready',
'transcode_active',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load_requirements(*requirements_paths):
return list(requirements)


VERSION = '1.2.8'
VERSION = '1.2.9'

if sys.argv[-1] == 'tag':
print("Tagging the version on github:")
Expand Down

0 comments on commit 446c529

Please sign in to comment.