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
5434f275
Commit
5434f275
authored
May 31, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up code to fix pylint/pep8 errors.
parent
2277c82e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
+8
-10
cms/djangoapps/contentstore/features/video.feature
+1
-2
cms/djangoapps/contentstore/features/video.py
+1
-2
lms/djangoapps/courseware/features/common.py
+1
-1
lms/djangoapps/courseware/features/video.feature
+1
-2
lms/djangoapps/courseware/features/video.py
+4
-3
No files found.
cms/djangoapps/contentstore/features/video.feature
View file @
5434f275
...
...
@@ -3,4 +3,4 @@ Feature: Video Component
Scenario
:
Autoplay is disabled in Studio
Given
I have created a Video component
Then
when I view it it does not autoplay
\ No newline at end of file
Then
when I view the video it does not have autoplay enabled
cms/djangoapps/contentstore/features/video.py
View file @
5434f275
#pylint: disable=C0111
from
lettuce
import
world
,
step
from
common
import
*
############### ACTIONS ####################
@step
(
'when I view
it it does not autoplay
'
)
@step
(
'when I view
the video it does not have autoplay enabled
'
)
def
does_not_autoplay
(
step
):
assert
world
.
css_find
(
'.video'
)[
0
][
'data-autoplay'
]
==
'False'
assert
world
.
css_find
(
'.video_control'
)[
0
]
.
has_class
(
'play'
)
lms/djangoapps/courseware/features/common.py
View file @
5434f275
...
...
@@ -20,7 +20,7 @@ logger = getLogger(__name__)
TEST_COURSE_ORG
=
'edx'
TEST_COURSE_NAME
=
'Test Course'
TEST_SECTION_NAME
=
"Problem"
TEST_SECTION_NAME
=
'Test Section'
@step
(
u'The course "([^"]*)" exists$'
)
...
...
lms/djangoapps/courseware/features/video.feature
View file @
5434f275
...
...
@@ -3,4 +3,4 @@ Feature: Video component
Scenario
:
Autoplay is enabled in LMS
Given
the course has a Video component
Then
when I view it it does autoplay
\ No newline at end of file
Then
when I view the video it has autoplay enabled
lms/djangoapps/courseware/features/video.py
View file @
5434f275
#pylint: disable=C0111
from
lettuce
import
world
,
step
from
common
import
*
from
lettuce.django
import
django_url
from
common
import
TEST_COURSE_NAME
,
TEST_SECTION_NAME
,
i_am_registered_for_the_course
,
section_location
############### ACTIONS ####################
@step
(
'when I view
it it does autoplay
'
)
@step
(
'when I view
the video it has autoplay enabled
'
)
def
does_autoplay
(
step
):
assert
(
world
.
css_find
(
'.video'
)[
0
][
'data-autoplay'
]
==
'True'
)
...
...
@@ -17,7 +18,7 @@ def view_video(step):
i_am_registered_for_the_course
(
step
,
coursename
)
# Make sure we have a video
video
=
add_video_to_course
(
coursename
)
add_video_to_course
(
coursename
)
chapter_name
=
TEST_SECTION_NAME
.
replace
(
" "
,
"_"
)
section_name
=
chapter_name
url
=
django_url
(
'/courses/edx/Test_Course/Test_Course/courseware/
%
s/
%
s'
%
...
...
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