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"')