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
a03a4945
Commit
a03a4945
authored
Apr 14, 2016
by
Eric Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review feedback
parent
97235bd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
openassessment/xblock/grade_mixin.py
+1
-1
test/acceptance/tests.py
+10
-10
No files found.
openassessment/xblock/grade_mixin.py
View file @
a03a4945
...
@@ -361,7 +361,7 @@ class GradeMixin(object):
...
@@ -361,7 +361,7 @@ class GradeMixin(object):
)
)
self_assessment_part
=
_get_assessment_part
(
self_assessment_part
=
_get_assessment_part
(
_
(
'Self Assessment Grade'
)
if
is_staff
else
_
(
'Your Self Assessment'
),
_
(
'Self Assessment Grade'
)
if
is_staff
else
_
(
'Your Self Assessment'
),
_
(
'
Self
Comments'
),
_
(
'
Your
Comments'
),
criterion_name
,
criterion_name
,
self_assessment
self_assessment
)
)
...
...
test/acceptance/tests.py
View file @
a03a4945
...
@@ -242,8 +242,7 @@ class OpenAssessmentTest(WebAppTest):
...
@@ -242,8 +242,7 @@ class OpenAssessmentTest(WebAppTest):
Args:
Args:
number_to_assess: the number of submissions to assess. If not provided (or 0),
number_to_assess: the number of submissions to assess. If not provided (or 0),
will grade all available submissions.
will grade all available submissions.
options_to_select (dict): the options to choose when grading. Using this parameter precludes leaving
selected_options (dict): the options to choose when grading. Defaults to OPTIONS_SELECTED.
feedback.
feedback (function(feedback_type)): if feedback is set, it will be used as a function that takes one
feedback (function(feedback_type)): if feedback is set, it will be used as a function that takes one
parameter to generate a feedback string.
parameter to generate a feedback string.
"""
"""
...
@@ -1115,7 +1114,7 @@ class FullWorkflowRequiredTest(OpenAssessmentTest, FullWorkflowMixin):
...
@@ -1115,7 +1114,7 @@ class FullWorkflowRequiredTest(OpenAssessmentTest, FullWorkflowMixin):
@ddt.ddt
@ddt.ddt
class
FeedbackOnlyTest
(
OpenAssessmentTest
,
FullWorkflowMixin
):
class
FeedbackOnlyTest
(
OpenAssessmentTest
,
FullWorkflowMixin
):
"""
"""
Test for a problem that
only accepts feedback. Will make and verify peer, self,
and staff assessments.
Test for a problem that
containing a criterion that only accepts feedback. Will make and verify self
and staff assessments.
"""
"""
def
setUp
(
self
):
def
setUp
(
self
):
super
(
FeedbackOnlyTest
,
self
)
.
setUp
(
"feedback_only"
,
staff
=
True
)
super
(
FeedbackOnlyTest
,
self
)
.
setUp
(
"feedback_only"
,
staff
=
True
)
...
@@ -1152,22 +1151,23 @@ class FeedbackOnlyTest(OpenAssessmentTest, FullWorkflowMixin):
...
@@ -1152,22 +1151,23 @@ class FeedbackOnlyTest(OpenAssessmentTest, FullWorkflowMixin):
feedback
=
lambda
feedback_type
:
self
.
generate_feedback
(
"staff"
,
feedback_type
)
feedback
=
lambda
feedback_type
:
self
.
generate_feedback
(
"staff"
,
feedback_type
)
)
)
# Verify
feedback appears from all assessments in
student-viewable grade report
# Verify student-viewable grade report
self
.
refresh_page
()
self
.
refresh_page
()
self
.
grade_page
.
wait_for_page
()
self
.
grade_page
.
wait_for_page
()
self
.
assertEqual
(
self
.
grade_page
.
grade_entry
(
0
,
0
),
(
u'STAFF GRADE - 1 POINT'
,
u'Yes'
))
# Reported answer 1
self
.
assertEqual
(
self
.
grade_page
.
grade_entry
(
0
,
1
),
(
u'YOUR SELF ASSESSMENT'
,
u'Yes'
))
# Reported answer 2
for
i
,
assessment_type
in
enumerate
([
"staff"
,
"self"
]):
for
i
,
assessment_type
in
enumerate
([
"staff"
,
"self"
]):
# Criterion feedback first
# Criterion feedback first
expected
=
self
.
generate_feedback
(
assessment_type
,
"criterion"
)
expected
=
self
.
generate_feedback
(
assessment_type
,
"criterion"
)
actual
=
self
.
grade_page
.
feedback_entry
(
1
,
i
)
actual
=
self
.
grade_page
.
feedback_entry
(
1
,
i
)
self
.
assertEqual
(
actual
,
expected
)
self
.
assertEqual
(
actual
,
expected
)
# Reported answers 3 and 4
# Then overall
# Then overall
expected
=
self
.
generate_feedback
(
assessment_type
,
"overall"
)
expected
=
self
.
generate_feedback
(
assessment_type
,
"overall"
)
actual
=
self
.
grade_page
.
feedback_entry
(
"feedback"
,
i
)
actual
=
self
.
grade_page
.
feedback_entry
(
"feedback"
,
i
)
self
.
assertEqual
(
actual
,
expected
)
self
.
assertEqual
(
actual
,
expected
)
# Reported answers 5 and 6
# Verify that no reported answers other than the 6 we already verified are present
# Verify that all score-bearing items are hidden
# There should be 4 reported answers - criterion and overall feedback for each of staff and self
self
.
assertEqual
(
self
.
grade_page
.
total_reported_answers
,
6
)
self
.
assertEqual
(
self
.
grade_page
.
total_reported_answers
,
6
)
# Verify that the feedback-only criterion has no score
self
.
assertEqual
(
self
.
grade_page
.
number_scored_criteria
,
1
)
self
.
assertEqual
(
self
.
grade_page
.
number_scored_criteria
,
1
)
# Verify feedback appears from all assessments in staff tools
# Verify feedback appears from all assessments in staff tools
...
@@ -1197,7 +1197,7 @@ class FeedbackOnlyTest(OpenAssessmentTest, FullWorkflowMixin):
...
@@ -1197,7 +1197,7 @@ class FeedbackOnlyTest(OpenAssessmentTest, FullWorkflowMixin):
self
.
staff_area_page
.
overall_feedback
(
'self__assessments'
),
self
.
staff_area_page
.
overall_feedback
(
'self__assessments'
),
self
.
generate_feedback
(
"self"
,
"overall"
)
self
.
generate_feedback
(
"self"
,
"overall"
)
)
)
#
No score should be
shown
#
Verify correct score is
shown
self
.
staff_area_page
.
verify_learner_final_score
(
"Final grade: 1 out of 1"
)
self
.
staff_area_page
.
verify_learner_final_score
(
"Final grade: 1 out of 1"
)
...
...
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