Commit 997c0ee1 by Bridger Maxwell

Grading test now tries a weighted problem.

parent dfa977db
...@@ -19,7 +19,11 @@ ...@@ -19,7 +19,11 @@
"graded": true, "graded": true,
"format": "Homework" "format": "Homework"
}, },
"problem/H2P1": {
"weight": 4
},
"videosequence/Homework3": { "videosequence/Homework3": {
"display_name": "Homework 3", "display_name": "Homework 3",
"graded": true, "graded": true,
......
...@@ -754,13 +754,16 @@ class TestCourseGrader(PageLoader): ...@@ -754,13 +754,16 @@ class TestCourseGrader(PageLoader):
# On the second homework, we only answer half of the questions. # On the second homework, we only answer half of the questions.
# Then it will be dropped when homework three becomes the higher percent # Then it will be dropped when homework three becomes the higher percent
# This problem is also weighted to be 4 points (instead of default of 2)
# If the problem was unweighted the percent would have been 0.38 so we
# know it works.
self.submit_question_answer('H2P1', ['Correct', 'Correct']) self.submit_question_answer('H2P1', ['Correct', 'Correct'])
self.check_grade_percent(0.38) self.check_grade_percent(0.42)
# Third homework # Third homework
self.submit_question_answer('H3P1', ['Correct', 'Correct']) self.submit_question_answer('H3P1', ['Correct', 'Correct'])
self.check_grade_percent(0.38) # Score didn't change self.check_grade_percent(0.42) # Score didn't change
self.submit_question_answer('H3P2', ['Correct', 'Correct']) self.submit_question_answer('H3P2', ['Correct', 'Correct'])
self.check_grade_percent(0.5) # Now homework2 dropped. Score changes self.check_grade_percent(0.5) # Now homework2 dropped. Score changes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment