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
a8f686ec
Commit
a8f686ec
authored
Nov 13, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled test making external calls to YouTube
parent
a0355c86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
cms/djangoapps/contentstore/tests/test_transcripts_utils.py
+20
-0
No files found.
cms/djangoapps/contentstore/tests/test_transcripts_utils.py
View file @
a8f686ec
...
@@ -9,6 +9,8 @@ from pymongo import MongoClient
...
@@ -9,6 +9,8 @@ from pymongo import MongoClient
from
django.test.utils
import
override_settings
from
django.test.utils
import
override_settings
from
django.conf
import
settings
from
django.conf
import
settings
from
nose.plugins.skip
import
SkipTest
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
xmodule.contentstore.content
import
StaticContent
from
xmodule.contentstore.content
import
StaticContent
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
...
@@ -185,6 +187,12 @@ class TestDownloadYoutubeSubs(ModuleStoreTestCase):
...
@@ -185,6 +187,12 @@ class TestDownloadYoutubeSubs(ModuleStoreTestCase):
_CONTENTSTORE
.
clear
()
_CONTENTSTORE
.
clear
()
def
test_success_downloading_subs
(
self
):
def
test_success_downloading_subs
(
self
):
# Disabled 11/14/13
# This test is flakey because it performs an HTTP request on an external service
# Re-enable when `requests.get` is patched using `mock.patch`
raise
SkipTest
good_youtube_subs
=
{
good_youtube_subs
=
{
0.5
:
'JMD_ifUUfsU'
,
0.5
:
'JMD_ifUUfsU'
,
1.0
:
'hI10vDNYz4M'
,
1.0
:
'hI10vDNYz4M'
,
...
@@ -206,6 +214,12 @@ class TestDownloadYoutubeSubs(ModuleStoreTestCase):
...
@@ -206,6 +214,12 @@ class TestDownloadYoutubeSubs(ModuleStoreTestCase):
self
.
clear_subs_content
(
good_youtube_subs
)
self
.
clear_subs_content
(
good_youtube_subs
)
def
test_fail_downloading_subs
(
self
):
def
test_fail_downloading_subs
(
self
):
# Disabled 11/14/13
# This test is flakey because it performs an HTTP request on an external service
# Re-enable when `requests.get` is patched using `mock.patch`
raise
SkipTest
bad_youtube_subs
=
{
bad_youtube_subs
=
{
0.5
:
'BAD_YOUTUBE_ID1'
,
0.5
:
'BAD_YOUTUBE_ID1'
,
1.0
:
'BAD_YOUTUBE_ID2'
,
1.0
:
'BAD_YOUTUBE_ID2'
,
...
@@ -228,6 +242,12 @@ class TestDownloadYoutubeSubs(ModuleStoreTestCase):
...
@@ -228,6 +242,12 @@ class TestDownloadYoutubeSubs(ModuleStoreTestCase):
self
.
clear_subs_content
(
bad_youtube_subs
)
self
.
clear_subs_content
(
bad_youtube_subs
)
def
test_success_downloading_chinese_transcripts
(
self
):
def
test_success_downloading_chinese_transcripts
(
self
):
# Disabled 11/14/13
# This test is flakey because it performs an HTTP request on an external service
# Re-enable when `requests.get` is patched using `mock.patch`
raise
SkipTest
good_youtube_subs
=
{
good_youtube_subs
=
{
1.0
:
'j_jEn79vS3g'
,
# Chinese, utf-8
1.0
:
'j_jEn79vS3g'
,
# Chinese, utf-8
}
}
...
...
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