Commit 6b40e6f2 by Nimisha Asthagiri Committed by GitHub

Merge pull request #14117 from edx/beryl/rename-inaccessible

Grade Report rename "Not Accessible" to "Not Available".
parents 9126f9a2 e29ada8c
......@@ -823,7 +823,7 @@ def upload_grades_csv(_xmodule_instance_args, _entry_id, course_id, _task_input,
try:
subsection_grade = course_grade.graded_subsections_by_format[assignment_type][subsection_location]
except KeyError:
grade_results.append([u'Not Accessible'])
grade_results.append([u'Not Available'])
else:
if subsection_grade.graded_total.attempted:
grade_results.append(
......@@ -1001,7 +1001,7 @@ def upload_problem_grade_report(_xmodule_instance_args, _entry_id, course_id, _t
try:
problem_score = course_grade.locations_to_scores[block_location]
except KeyError:
earned_possible_values.append([u'Not Accessible', u'Not Accessible'])
earned_possible_values.append([u'Not Available', u'Not Available'])
else:
if problem_score.attempted:
earned_possible_values.append([problem_score.earned, problem_score.possible])
......
......@@ -646,7 +646,7 @@ class TestGradeReportConditionalContent(TestReportMixin, TestConditionalContent,
{
self.student_b: {
u'Grade': '0.0',
u'Homework': u'Not Accessible',
u'Homework': u'Not Available',
}
},
],
......
......@@ -696,7 +696,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent,
In order to verify that the behavior of the grade report is correct, we submit answers for problems
that the student won't have access to. A/B tests won't restrict access to the problems, but it should
not show up in that student's course tree when generating the grade report, hence the Not Accessible's
not show up in that student's course tree when generating the grade report, hence the Not Available's
in the grade report.
"""
# student A will get 100%, student B will get 50% because
......@@ -726,7 +726,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent,
unicode(self.student_a.id),
self.student_a.email,
self.student_a.username,
u'1.0', u'2.0', u'2.0', u'Not Accessible', u'Not Accessible'
u'1.0', u'2.0', u'2.0', u'Not Available', u'Not Available'
]
)),
dict(zip(
......@@ -734,7 +734,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent,
[
unicode(self.student_b.id),
self.student_b.email,
self.student_b.username, u'0.5', u'Not Accessible', u'Not Accessible', u'1.0', u'2.0'
self.student_b.username, u'0.5', u'Not Available', u'Not Available', u'1.0', u'2.0'
]
))
])
......@@ -869,19 +869,19 @@ class TestProblemReportCohortedContent(TestReportMixin, ContentGroupTestCase, In
user_grades = [
{
'user': self.staff_user,
'grade': [u'0.0', u'Not Accessible', u'Not Accessible', u'Not Accessible', u'Not Accessible'],
'grade': [u'0.0', u'Not Available', u'Not Available', u'Not Available', u'Not Available'],
},
{
'user': self.alpha_user,
'grade': [u'1.0', u'2.0', u'2.0', u'Not Accessible', u'Not Accessible'],
'grade': [u'1.0', u'2.0', u'2.0', u'Not Available', u'Not Available'],
},
{
'user': self.beta_user,
'grade': [u'0.5', u'Not Accessible', u'Not Accessible', u'1.0', u'2.0'],
'grade': [u'0.5', u'Not Available', u'Not Available', u'1.0', u'2.0'],
},
{
'user': self.non_cohorted_user,
'grade': [u'0.0', u'Not Accessible', u'Not Accessible', u'Not Accessible', u'Not Accessible'],
'grade': [u'0.0', u'Not Available', u'Not Available', u'Not Available', u'Not Available'],
},
]
......@@ -1581,9 +1581,9 @@ class TestGradeReport(TestReportMixin, InstructorTaskModuleTestCase):
u'Username': self.student.username,
u'Grade': '0.13',
u'Homework 1: Subsection': '0.5',
u'Homework 2: Hidden': u'Not Accessible',
u'Homework 2: Hidden': u'Not Available',
u'Homework 3: Unattempted': u'Not Attempted',
u'Homework 4: Empty': u'Not Accessible',
u'Homework 4: Empty': u'Not Available',
u'Homework (Avg)': '0.125',
},
],
......
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