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
deb9e539
Commit
deb9e539
authored
Jan 10, 2017
by
Jesse Zoldak
Committed by
GitHub
Jan 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14295 from edx/zoldak/TE-1927
Skip the youtube acceptance tests TE-1927
parents
b14a8d64
d87c9c41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
common/test/acceptance/tests/helpers.py
+6
-19
No files found.
common/test/acceptance/tests/helpers.py
View file @
deb9e539
...
...
@@ -69,25 +69,12 @@ def is_youtube_available():
bool:
"""
youtube_api_urls
=
{
'main'
:
'https://www.youtube.com/'
,
'player'
:
'https://www.youtube.com/iframe_api'
,
# For transcripts, you need to check an actual video, so we will
# just specify our default video and see if that one is available.
'transcript'
:
'http://video.google.com/timedtext?lang=en&v=3_yD_cEKoCk'
,
}
for
url
in
youtube_api_urls
.
itervalues
():
try
:
response
=
requests
.
get
(
url
,
allow_redirects
=
False
)
except
requests
.
exceptions
.
ConnectionError
:
return
False
if
response
.
status_code
>=
300
:
return
False
return
True
# Skip all the youtube tests for now because they are failing intermittently
# due to changes on their side. See: TE-1927
# TODO: Design and implement a better solution that is reliable and repeatable,
# reflects how the application works in production, and limits the third-party
# network traffic (e.g. repeatedly retrieving the js from youtube from the browser).
return
False
def
is_focused_on_element
(
browser
,
selector
):
...
...
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