Update tests to handle rubric scores
This commit is contained in:
@@ -55,7 +55,7 @@ class MockStaffGradingService(object):
|
||||
]})
|
||||
|
||||
|
||||
def save_grade(self, course_id, grader_id, submission_id, score, feedback, skipped):
|
||||
def save_grade(self, course_id, grader_id, submission_id, score, feedback, skipped, rubric_scores):
|
||||
return self.get_next(course_id, 'fake location', grader_id)
|
||||
|
||||
|
||||
|
||||
@@ -94,7 +94,8 @@ class TestStaffGradingService(ct.PageLoader):
|
||||
data = {'score': '12',
|
||||
'feedback': 'great!',
|
||||
'submission_id': '123',
|
||||
'location': self.location}
|
||||
'location': self.location,
|
||||
'rubric_scores[]': ['1', '2']}
|
||||
r = self.check_for_post_code(200, url, data)
|
||||
d = json.loads(r.content)
|
||||
self.assertTrue(d['success'], str(d))
|
||||
|
||||
Reference in New Issue
Block a user