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
7bb45b74
Commit
7bb45b74
authored
Nov 30, 2017
by
Qubad786
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
cae12a6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
common/lib/xmodule/xmodule/tests/test_video.py
+8
-3
No files found.
common/lib/xmodule/xmodule/tests/test_video.py
View file @
7bb45b74
...
...
@@ -977,7 +977,10 @@ class VideoDescriptorIndexingTestCase(unittest.TestCase):
'''
descriptor
=
instantiate_descriptor
(
data
=
xml_data_transcripts
)
translations
=
descriptor
.
available_translations
(
descriptor
.
get_transcripts_info
(
include_val_transcripts
=
False
))
translations
=
descriptor
.
available_translations
(
descriptor
.
get_transcripts_info
(
include_val_transcripts
=
False
),
include_val_transcripts
=
False
)
self
.
assertEqual
(
translations
,
[
'hr'
,
'ge'
])
def
test_video_with_no_transcripts_translation_retrieval
(
self
):
...
...
@@ -988,7 +991,8 @@ class VideoDescriptorIndexingTestCase(unittest.TestCase):
"""
descriptor
=
instantiate_descriptor
(
data
=
None
)
translations_with_fallback
=
descriptor
.
available_translations
(
descriptor
.
get_transcripts_info
(
include_val_transcripts
=
False
)
descriptor
.
get_transcripts_info
(
include_val_transcripts
=
False
),
include_val_transcripts
=
False
,
)
self
.
assertEqual
(
translations_with_fallback
,
[
'en'
])
...
...
@@ -996,7 +1000,8 @@ class VideoDescriptorIndexingTestCase(unittest.TestCase):
# Some organizations don't have English transcripts for all videos
# This feature makes it configurable
translations_no_fallback
=
descriptor
.
available_translations
(
descriptor
.
get_transcripts_info
(
include_val_transcripts
=
False
)
descriptor
.
get_transcripts_info
(
include_val_transcripts
=
False
),
include_val_transcripts
=
False
,
)
self
.
assertEqual
(
translations_no_fallback
,
[])
...
...
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