Commit 95e6a40e by David Ormsbee

Add unicode test case for new style assessment dicts.

parent fdbbe88c
......@@ -135,7 +135,7 @@ def create_assessment(
"points_earned": sum(assessment_dict["points_earned"]),
"points_possible": assessment_dict["points_possible"],
"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:
peer_assessment["scored_at"] = scored_at
......
......@@ -19,7 +19,7 @@ ASSESSMENT_DICT = dict(
feedback="Your submission was thrilling.",
options_selected={
"secret": "yes",
"safe": "no",
u"ⓢⓐⓕⓔ": "no",
"giveup": "reluctant",
"singing": "no",
}
......@@ -36,7 +36,7 @@ RUBRIC_DICT = dict(
]
),
dict(
name="safe",
name=u"ⓢⓐⓕⓔ",
prompt="Did the writer keep it safe?",
options=[
dict(name="no", points="0", explanation=""),
......
......@@ -2,7 +2,13 @@
"unicode_evaluation": {
"points_earned": [10, 0, 24, 36],
"points_possible": 12,
"feedback": "这是中国"
"feedback": "这是中国",
"options_selected": {
"secret": "yes",
"ⓢⓐⓕⓔ": "no",
"giveup": "reluctant",
"singing": "no",
}
},
"basic_evaluation": {
"points_earned": [1, 0, 3, 2],
......
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