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
111e9362
Commit
111e9362
authored
Dec 19, 2017
by
Mushtaq Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor
parent
bf190287
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
cms/djangoapps/contentstore/views/tests/test_videos.py
+1
-3
No files found.
cms/djangoapps/contentstore/views/tests/test_videos.py
View file @
111e9362
...
@@ -32,8 +32,7 @@ from contentstore.views.videos import (
...
@@ -32,8 +32,7 @@ from contentstore.views.videos import (
validate_video_image
,
validate_video_image
,
VIDEO_IMAGE_UPLOAD_ENABLED
,
VIDEO_IMAGE_UPLOAD_ENABLED
,
WAFFLE_SWITCHES
,
WAFFLE_SWITCHES
,
TranscriptProvider
,
TranscriptProvider
get_all_transcript_languages
)
)
from
contentstore.views.videos
import
KEY_EXPIRATION_IN_SECONDS
,
StatusDisplayStrings
,
convert_video_status
from
contentstore.views.videos
import
KEY_EXPIRATION_IN_SECONDS
,
StatusDisplayStrings
,
convert_video_status
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
xmodule.modulestore.tests.factories
import
CourseFactory
...
@@ -309,7 +308,6 @@ class VideosHandlerTestCase(VideoUploadTestMixin, CourseTestCase):
...
@@ -309,7 +308,6 @@ class VideosHandlerTestCase(VideoUploadTestMixin, CourseTestCase):
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertEqual
(
response
.
status_code
,
200
)
response_videos
=
json
.
loads
(
response
.
content
)[
'videos'
]
response_videos
=
json
.
loads
(
response
.
content
)[
'videos'
]
all_languages
=
get_all_transcript_languages
(
is_video_transcript_enabled
)
for
response_video
in
response_videos
:
for
response_video
in
response_videos
:
if
response_video
[
'edx_video_id'
]
==
self
.
previous_uploads
[
0
][
'edx_video_id'
]:
if
response_video
[
'edx_video_id'
]
==
self
.
previous_uploads
[
0
][
'edx_video_id'
]:
self
.
assertDictEqual
(
response_video
[
'transcripts'
],
expected_transcripts
)
self
.
assertDictEqual
(
response_video
[
'transcripts'
],
expected_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