Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
997c0ee1
Commit
997c0ee1
authored
Sep 20, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grading test now tries a weighted problem.
parent
dfa977db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
common/test/data/graded/policies/2012_Fall.json
+5
-1
lms/djangoapps/courseware/tests/tests.py
+5
-2
No files found.
common/test/data/graded/policies/2012_Fall.json
View file @
997c0ee1
...
@@ -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
,
...
...
lms/djangoapps/courseware/tests/tests.py
View file @
997c0ee1
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment