Commit e8b27894 by JonahStanley

Fixed upload test. Also added information to testing.md

parent 36b88934
......@@ -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)
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment