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
871b7fe7
Commit
871b7fe7
authored
Dec 20, 2017
by
Mushtaq Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature disabled JS tests
Fix quality
parent
554c90d1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
11 deletions
+7
-11
cms/djangoapps/contentstore/views/tests/test_videos.py
+3
-9
cms/djangoapps/contentstore/views/videos.py
+3
-1
cms/static/js/spec/views/video_transcripts_spec.js
+0
-0
cms/static/js/views/video_transcripts.js
+1
-1
No files found.
cms/djangoapps/contentstore/views/tests/test_videos.py
View file @
871b7fe7
...
...
@@ -21,7 +21,7 @@ from edxval.api import (
get_video_info
,
get_course_video_image_url
,
create_or_update_video_transcript
)
)
from
mock
import
Mock
,
patch
from
contentstore.models
import
VideoUploadConfig
...
...
@@ -287,8 +287,8 @@ class VideosHandlerTestCase(VideoUploadTestMixin, CourseTestCase):
}
],
{
'en'
:
'English'
,
'es'
:
'Spanish'
'en'
:
'English'
,
'es'
:
'Spanish'
}
)
)
...
...
@@ -653,12 +653,6 @@ class VideosHandlerTestCase(VideoUploadTestMixin, CourseTestCase):
is_video_transcript_enabled
)
# Verify that transcripts column is present in the response if videos transcript feature is enabled.
self
.
assertEqual
(
'<div class="video-head-col video-col transcripts-col">Transcripts</div>'
in
response
.
content
,
is_video_transcript_enabled
)
@ddt.ddt
@patch.dict
(
'django.conf.settings.FEATURES'
,
{
'ENABLE_VIDEO_UPLOAD_PIPELINE'
:
True
})
...
...
cms/djangoapps/contentstore/views/videos.py
View file @
871b7fe7
...
...
@@ -580,6 +580,7 @@ def _get_index_videos(course):
_get_values
(
video
)
for
video
in
_get_videos
(
course
)
]
def
get_all_transcript_languages
(
is_video_transcript_enabled
=
False
):
"""
Returns all possible languages for transcript.
...
...
@@ -592,7 +593,7 @@ def get_all_transcript_languages(is_video_transcript_enabled=False):
# Get third party transcription languages.
third_party_transcription_languages
=
transcription_plans
[
TranscriptProvider
.
THREE_PLAY_MEDIA
][
'languages'
]
third_party_transcription_languages
=
dict
(
third_party_transcription_languages
,
**
cielo_fidelity
[
'MECHANICAL'
][
'languages'
])
third_party_transcription_languages
=
dict
(
third_party_transcription_languages
,
**
cielo_fidelity
[
'PREMIUM'
][
'languages'
])
third_party_transcription_languages
=
dict
(
third_party_transcription_languages
,
**
cielo_fidelity
[
'PREMIUM'
][
'languages'
])
third_party_transcription_languages
=
dict
(
third_party_transcription_languages
,
**
cielo_fidelity
[
'PROFESSIONAL'
][
'languages'
])
# Get all settings languages dict.
...
...
@@ -603,6 +604,7 @@ def get_all_transcript_languages(is_video_transcript_enabled=False):
# Return combined settings and 3rd party transcript languages.
return
dict
(
all_languages
,
**
third_party_transcription_languages
)
def
videos_index_html
(
course
):
"""
Returns an HTML page to display previous video uploads and allow new ones
...
...
cms/static/js/spec/views/video_transcripts_spec.js
View file @
871b7fe7
This diff is collapsed.
Click to expand it.
cms/static/js/views/video_transcripts.js
View file @
871b7fe7
...
...
@@ -62,7 +62,7 @@ define(
StringUtils
.
interpolate
(
gettext
(
'{toggleShowTranscriptText} transcripts ({totalTranscripts})'
),
{
toggleShowTranscriptText
:
$transcriptsWrapperEl
.
hasClass
(
'hidden'
)
?
gettext
(
'Show'
)
:
gettext
(
'Hide'
),
toggleShowTranscriptText
:
$transcriptsWrapperEl
.
hasClass
(
'hidden'
)
?
gettext
(
'Show'
)
:
gettext
(
'Hide'
),
// eslint-disable-line max-len
totalTranscripts
:
_
.
size
(
this
.
transcripts
)
}
)
...
...
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