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
9a4633be
Commit
9a4633be
authored
Oct 02, 2013
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix matchers.
parent
298e0a9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
cms/djangoapps/contentstore/features/video.py
+8
-4
No files found.
cms/djangoapps/contentstore/features/video.py
View file @
9a4633be
...
...
@@ -16,21 +16,25 @@ def i_created_a_video_component(step):
)
@step
(
'I have created a Video component with (.*)subtitles$'
)
def
i_created_a_video_with_subs
(
_step
,
sub_id
):
@step
(
'I have created a Video component with subtitles$'
)
def
i_created_a_video_with_subs
(
_step
):
_step
.
given
(
'I have created a Video component with subtitles "OEoXaMPEzfM"'
)
@step
(
'I have created a Video component with subtitles "([^"]*)"$'
)
def
i_created_a_video_with_subs_with_name
(
_step
,
sub_id
):
_step
.
given
(
'I have created a Video component'
)
# Store the current URL so we can return here
video_url
=
world
.
browser
.
url
# Upload subtitles for the video using the upload interface
_step
.
given
(
'I have uploaded
{} subtitles
'
.
format
(
sub_id
))
_step
.
given
(
'I have uploaded
subtitles "{}"
'
.
format
(
sub_id
))
# Return to the video
world
.
visit
(
video_url
)
@step
(
'I have uploaded
(.*) subtitles
$'
)
@step
(
'I have uploaded
subtitles "([^"]*)"
$'
)
def
i_have_uploaded_subtitles
(
_step
,
sub_id
):
_step
.
given
(
'I go to the files and uploads page'
)
...
...
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