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