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
8b3fb33f
Commit
8b3fb33f
authored
Jan 16, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests to handle rubric scores
parent
d844730f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lms/djangoapps/open_ended_grading/staff_grading_service.py
+1
-1
lms/djangoapps/open_ended_grading/tests.py
+2
-1
No files found.
lms/djangoapps/open_ended_grading/staff_grading_service.py
View file @
8b3fb33f
...
...
@@ -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
)
...
...
lms/djangoapps/open_ended_grading/tests.py
View file @
8b3fb33f
...
...
@@ -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
))
...
...
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