Added stub XQueue server to bok_choy test suite.

Added feedback check for AI-assessment test

Added peer assessment feedback test
This commit is contained in:
Will Daly
2014-01-16 11:02:36 -05:00
parent a6b97b402f
commit b73c6f63fc
22 changed files with 706 additions and 186 deletions

View File

@@ -42,13 +42,15 @@ def view_problem(step, problem_type):
def set_external_grader_response(step, correctness):
assert(correctness in ['correct', 'incorrect'])
response_dict = {'correct': True if correctness == 'correct' else False,
'score': 1 if correctness == 'correct' else 0,
'msg': 'Your problem was graded %s' % correctness}
response_dict = {
'correct': True if correctness == 'correct' else False,
'score': 1 if correctness == 'correct' else 0,
'msg': 'Your problem was graded {0}'.format(correctness)
}
# Set the fake xqueue server to always respond
# correct/incorrect when asked to grade a problem
world.xqueue.set_config('grade_response', response_dict)
world.xqueue.config['default'] = response_dict
@step(u'I answer a "([^"]*)" problem "([^"]*)ly"')

View File

@@ -107,7 +107,7 @@ def add_video_to_course(course, player_mode, display_name='Video'):
@step('youtube server is up and response time is (.*) seconds$')
def set_youtube_response_timeout(_step, time):
world.youtube.set_config('time_to_response', float(time))
world.youtube.config['time_to_response'] = float(time)
@step('when I view the video it has rendered in (.*) mode$')

View File

@@ -107,7 +107,7 @@
"password": "password",
"username": "lms"
},
"url": "http://localhost:18040"
"url": "** OVERRIDDEN **"
},
"ZENDESK_API_KEY": "",
"ZENDESK_USER": ""

View File

@@ -38,6 +38,9 @@ MONGO_MODULESTORE['OPTIONS']['fs_root'] = (TEST_ROOT / "data").abspath()
XML_MODULESTORE = MODULESTORE['default']['OPTIONS']['stores']['xml']
XML_MODULESTORE['OPTIONS']['data_dir'] = (TEST_ROOT / "data").abspath()
# Configure the LMS to use our stub XQueue implementation
XQUEUE_INTERFACE['url'] = 'http://localhost:8040'
# Enable django-pipeline and staticfiles
STATIC_ROOT = (TEST_ROOT / "staticfiles").abspath()
PIPELINE = True