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
3f5f7c1d
Commit
3f5f7c1d
authored
Dec 28, 2014
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed studio tests
TNL-708
parent
17cdf6a6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
78 deletions
+78
-78
openassessment/xblock/test/data/invalid_rubrics.json
+22
-22
openassessment/xblock/test/data/invalid_update_xblock.json
+28
-28
openassessment/xblock/test/data/update_xblock.json
+4
-4
openassessment/xblock/test/data/valid_rubrics.json
+23
-23
openassessment/xblock/test/test_studio.py
+1
-1
No files found.
openassessment/xblock/test/data/invalid_rubrics.json
View file @
3f5f7c1d
{
"zero_criteria"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[]
}
},
"negative_points"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -29,7 +29,7 @@
"duplicate_criteria_names"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -63,7 +63,7 @@
"duplicate_option_names"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -90,7 +90,7 @@
"change_points_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -114,7 +114,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -142,7 +142,7 @@
"add_criteria_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -166,7 +166,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -213,7 +213,7 @@
"remove_criteria_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -256,7 +256,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -284,7 +284,7 @@
"add_options_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -308,7 +308,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -330,7 +330,7 @@
"remove_options_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -348,7 +348,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -376,7 +376,7 @@
"rename_criterion_name_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -400,7 +400,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -428,7 +428,7 @@
"rename_multiple_criteria_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -465,7 +465,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -507,7 +507,7 @@
"example_based_duplicate_option_points"
:
{
"is_example_based"
:
true
,
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -534,7 +534,7 @@
"zero_options_feedback_optional"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -549,7 +549,7 @@
"zero_options_feedback_disabled"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -564,7 +564,7 @@
"zero_options_no_feedback"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
openassessment/xblock/test/data/invalid_update_xblock.json
View file @
3f5f7c1d
This diff is collapsed.
Click to expand it.
openassessment/xblock/test/data/update_xblock.json
View file @
3f5f7c1d
...
...
@@ -25,7 +25,7 @@
"feedback"
:
"required"
}
],
"prompt
"
:
"My new prompt."
,
"prompt
s"
:
[{
"description"
:
"My new prompt 1."
},
{
"description"
:
"My new prompt 2."
}]
,
"feedback_prompt"
:
"Feedback prompt"
,
"feedback_default_text"
:
"Feedback default text"
,
"submission_due"
:
"4014-02-27T09:46"
,
...
...
@@ -77,7 +77,7 @@
"feedback"
:
"required"
}
],
"prompt
"
:
"Ṁÿ ṅëẅ ṗṛöṁṗẗ."
,
"prompt
s"
:
[{
"description"
:
"Ṁÿ ṅëẅ ṗṛöṁṗẗ 1."
},
{
"description"
:
"Ṁÿ ṅëẅ ṗṛöṁṗẗ 2."
}]
,
"feedback_prompt"
:
"ḟëëḋḅäċḳ ṗṛöṁṗẗ"
,
"feedback_default_text"
:
"Ṫëṡẗ ḋëḟäüḷẗ ẗëẍẗ"
,
"submission_due"
:
"4014-02-27T09:46"
,
...
...
@@ -129,7 +129,7 @@
"feedback"
:
"required"
}
],
"prompt
"
:
"My new prompt."
,
"prompt
s"
:
[{
"description"
:
"My new prompt 1."
},
{
"description"
:
"My new prompt 2."
}]
,
"feedback_prompt"
:
"Feedback prompt"
,
"feedback_default_text"
:
"Feedback default text"
,
"submission_due"
:
"4014-02-27T09:46"
,
...
...
@@ -193,7 +193,7 @@
"feedback"
:
"required"
}
],
"prompt
"
:
"My new prompt."
,
"prompt
s"
:
[{
"description"
:
"My new prompt 1."
},
{
"description"
:
"My new prompt 2."
}]
,
"feedback_prompt"
:
"Feedback prompt"
,
"feedback_default_text"
:
"Feedback default text"
,
"submission_due"
:
"4014-02-27T09:46"
,
...
...
openassessment/xblock/test/data/valid_rubrics.json
View file @
3f5f7c1d
{
"simple"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -28,7 +28,7 @@
"unicode"
:
{
"rubric"
:
{
"prompt
"
:
"☃"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1 ☃."
},
{
"description"
:
"Test Prompt 2 ☃."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -55,7 +55,7 @@
"change_points_before_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -79,7 +79,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -107,7 +107,7 @@
"add_criteria_before_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -131,7 +131,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -178,7 +178,7 @@
"remove_criteria_before_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -221,7 +221,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -249,7 +249,7 @@
"add_options_before_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -273,7 +273,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -294,7 +294,7 @@
"remove_options_before_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -312,7 +312,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -340,7 +340,7 @@
"change_text_before_release"
:
{
"rubric"
:
{
"prompt
"
:
"Changed Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -364,7 +364,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -392,7 +392,7 @@
"change_criteria_prompt_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -416,7 +416,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -444,7 +444,7 @@
"change_option_name_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -468,7 +468,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -496,7 +496,7 @@
"change_option_explanation_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -520,7 +520,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -548,7 +548,7 @@
"rename_options_after_release"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -572,7 +572,7 @@
]
},
"current_rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
@@ -600,7 +600,7 @@
"zero_options"
:
{
"rubric"
:
{
"prompt
"
:
"Test Prompt"
,
"prompt
s"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}]
,
"criteria"
:
[
{
"order_num"
:
0
,
...
...
openassessment/xblock/test/test_studio.py
View file @
3f5f7c1d
...
...
@@ -18,7 +18,7 @@ class StudioViewTest(XBlockHandlerTestCase):
"""
UPDATE_EDITOR_DATA
=
{
"title"
:
"Test title"
,
"prompt
"
:
"Test prompt"
,
"prompt
s"
:
[{
"description"
:
"Test prompt"
}]
,
"feedback_prompt"
:
"Test feedback prompt"
,
"feedback_default_text"
:
"Test feedback default text"
,
"submission_start"
:
"4014-02-10T09:46"
,
...
...
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