Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
6fd4d2fd
Commit
6fd4d2fd
authored
Mar 05, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7229 from edx/hotfix/2015-03-05
Fix 500 errors on video upload page
parents
0eed96c2
83c47462
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
cms/djangoapps/contentstore/views/tests/test_videos.py
+14
-0
cms/djangoapps/contentstore/views/videos.py
+2
-2
No files found.
cms/djangoapps/contentstore/views/tests/test_videos.py
View file @
6fd4d2fd
...
...
@@ -97,6 +97,20 @@ class VideoUploadTestMixin(object):
]
},
]
# Ensure every status string is tested
self
.
previous_uploads
+=
[
{
"edx_video_id"
:
"status_test_{}"
.
format
(
status
),
"client_video_id"
:
"status_test.mp4"
,
"duration"
:
3.14
,
"status"
:
status
,
"encoded_videos"
:
[],
}
for
status
in
(
StatusDisplayStrings
.
_STATUS_MAP
.
keys
()
+
# pylint:disable=protected-access
[
"non_existent_status"
]
)
]
for
profile
in
self
.
profiles
:
create_profile
(
profile
)
for
video
in
self
.
previous_uploads
:
...
...
cms/djangoapps/contentstore/views/videos.py
View file @
6fd4d2fd
...
...
@@ -48,10 +48,10 @@ class StatusDisplayStrings(object):
# Translators: This is the status for a video that the servers have successfully processed
_COMPLETE
=
ugettext_noop
(
"Complete"
)
# Translators: This is the status for a video that the servers have failed to process
_FAILED
=
ugettext_noop
(
"Failed"
)
,
_FAILED
=
ugettext_noop
(
"Failed"
)
# Translators: This is the status for a video for which an invalid
# processing token was provided in the course settings
_INVALID_TOKEN
=
ugettext_noop
(
"Invalid Token"
)
,
_INVALID_TOKEN
=
ugettext_noop
(
"Invalid Token"
)
# Translators: This is the status for a video that is in an unknown state
_UNKNOWN
=
ugettext_noop
(
"Unknown"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment