Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
95e6a40e
Commit
95e6a40e
authored
Feb 21, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unicode test case for new style assessment dicts.
parent
fdbbe88c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
apps/openassessment/peer/api.py
+1
-1
apps/openassessment/peer/test/test_api.py
+2
-2
apps/openassessment/peer/test/test_valid_evaluations.json
+7
-1
No files found.
apps/openassessment/peer/api.py
View file @
95e6a40e
...
@@ -135,7 +135,7 @@ def create_assessment(
...
@@ -135,7 +135,7 @@ def create_assessment(
"points_earned"
:
sum
(
assessment_dict
[
"points_earned"
]),
"points_earned"
:
sum
(
assessment_dict
[
"points_earned"
]),
"points_possible"
:
assessment_dict
[
"points_possible"
],
"points_possible"
:
assessment_dict
[
"points_possible"
],
"score_type"
:
PEER_TYPE
,
"score_type"
:
PEER_TYPE
,
"parts"
:
[{
"option"
:
option_id
}
for
option_id
in
option
=
_ids
]
"parts"
:
[{
"option"
:
option_id
}
for
option_id
in
option_ids
]
}
}
if
scored_at
:
if
scored_at
:
peer_assessment
[
"scored_at"
]
=
scored_at
peer_assessment
[
"scored_at"
]
=
scored_at
...
...
apps/openassessment/peer/test/test_api.py
View file @
95e6a40e
...
@@ -19,7 +19,7 @@ ASSESSMENT_DICT = dict(
...
@@ -19,7 +19,7 @@ ASSESSMENT_DICT = dict(
feedback
=
"Your submission was thrilling."
,
feedback
=
"Your submission was thrilling."
,
options_selected
=
{
options_selected
=
{
"secret"
:
"yes"
,
"secret"
:
"yes"
,
"safe
"
:
"no"
,
u"ⓢⓐⓕⓔ
"
:
"no"
,
"giveup"
:
"reluctant"
,
"giveup"
:
"reluctant"
,
"singing"
:
"no"
,
"singing"
:
"no"
,
}
}
...
@@ -36,7 +36,7 @@ RUBRIC_DICT = dict(
...
@@ -36,7 +36,7 @@ RUBRIC_DICT = dict(
]
]
),
),
dict
(
dict
(
name
=
"safe
"
,
name
=
u"ⓢⓐⓕⓔ
"
,
prompt
=
"Did the writer keep it safe?"
,
prompt
=
"Did the writer keep it safe?"
,
options
=
[
options
=
[
dict
(
name
=
"no"
,
points
=
"0"
,
explanation
=
""
),
dict
(
name
=
"no"
,
points
=
"0"
,
explanation
=
""
),
...
...
apps/openassessment/peer/test/test_valid_evaluations.json
View file @
95e6a40e
...
@@ -2,7 +2,13 @@
...
@@ -2,7 +2,13 @@
"unicode_evaluation"
:
{
"unicode_evaluation"
:
{
"points_earned"
:
[
10
,
0
,
24
,
36
],
"points_earned"
:
[
10
,
0
,
24
,
36
],
"points_possible"
:
12
,
"points_possible"
:
12
,
"feedback"
:
"这是中国"
"feedback"
:
"这是中国"
,
"options_selected"
:
{
"secret"
:
"yes"
,
"ⓢⓐⓕⓔ"
:
"no"
,
"giveup"
:
"reluctant"
,
"singing"
:
"no"
,
}
},
},
"basic_evaluation"
:
{
"basic_evaluation"
:
{
"points_earned"
:
[
1
,
0
,
3
,
2
],
"points_earned"
:
[
1
,
0
,
3
,
2
],
...
...
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