56
56
@require_permission('edit')
57
57
def PUT(self, req, data):
58
58
""" Tests the given submission """
59
64
test_results = ivle.worksheet.utils.test_exercise_submission(
60
65
req.config, req.user, self.context.worksheet_exercise.exercise,
63
68
attempt = ivle.database.ExerciseAttempt(user=req.user,
64
69
worksheet_exercise = self.context.worksheet_exercise,
65
70
date = datetime.datetime.now(),
66
71
complete = test_results['passed'],