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
a867676e
Commit
a867676e
authored
Aug 08, 2013
by
Jonah Stanley
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #612 from edx/jonahstanley/fix-upload-test
Fixed upload test. Also added information to testing.md
parents
cd9d2085
e8b27894
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
cms/djangoapps/contentstore/features/upload.py
+5
-5
docs/internal/testing.md
+5
-1
No files found.
cms/djangoapps/contentstore/features/upload.py
View file @
a867676e
...
...
@@ -9,8 +9,6 @@ import random
import
os
TEST_ROOT
=
settings
.
COMMON_TEST_DATA_ROOT
HTTP_PREFIX
=
"http://localhost:
%
s"
%
settings
.
LETTUCE_SERVER_PORT
@step
(
u'I go to the files and uploads page'
)
def
go_to_uploads
(
_step
):
...
...
@@ -109,6 +107,8 @@ def get_file(file_name):
index
=
get_index
(
file_name
)
assert
index
!=
-
1
url_css
=
'input.embeddable-xml-input'
url
=
world
.
css_find
(
url_css
)[
index
]
.
value
return
requests
.
get
(
HTTP_PREFIX
+
url
)
url_css
=
'a.filename'
def
get_url
():
return
world
.
css_find
(
url_css
)[
index
]
.
_element
.
get_attribute
(
'href'
)
url
=
world
.
retry_on_exception
(
get_url
)
return
requests
.
get
(
url
)
docs/internal/testing.md
View file @
a867676e
...
...
@@ -196,7 +196,11 @@ To run all the acceptance tests:
To test only a specific feature:
rake test_acceptance_lms[lms/djangoapps/courseware/features/problems.feature]
rake test_acceptance_lms["lms/djangoapps/courseware/features/problems.feature"]
To test only a specific scenario
rake test_acceptance_lms["lms/djangoapps/courseware/features/problems.feature -s 3"]
To start the debugger on failure, add the
`--pdb`
option:
...
...
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