Commit e29ada8c by Nimisha Asthagiri

Grade Report rename "Not Accessible" to "Not Available".

parent b24c2280
...@@ -790,7 +790,7 @@ def upload_grades_csv(_xmodule_instance_args, _entry_id, course_id, _task_input, ...@@ -790,7 +790,7 @@ def upload_grades_csv(_xmodule_instance_args, _entry_id, course_id, _task_input,
try: try:
subsection_grade = course_grade.graded_subsections_by_format[assignment_type][subsection_location] subsection_grade = course_grade.graded_subsections_by_format[assignment_type][subsection_location]
except KeyError: except KeyError:
grade_results.append([u'Not Accessible']) grade_results.append([u'Not Available'])
else: else:
if subsection_grade.graded_total.attempted: if subsection_grade.graded_total.attempted:
grade_results.append( grade_results.append(
...@@ -968,7 +968,7 @@ def upload_problem_grade_report(_xmodule_instance_args, _entry_id, course_id, _t ...@@ -968,7 +968,7 @@ def upload_problem_grade_report(_xmodule_instance_args, _entry_id, course_id, _t
try: try:
problem_score = course_grade.locations_to_scores[block_location] problem_score = course_grade.locations_to_scores[block_location]
except KeyError: except KeyError:
earned_possible_values.append([u'Not Accessible', u'Not Accessible']) earned_possible_values.append([u'Not Available', u'Not Available'])
else: else:
if problem_score.attempted: if problem_score.attempted:
earned_possible_values.append([problem_score.earned, problem_score.possible]) earned_possible_values.append([problem_score.earned, problem_score.possible])
......
...@@ -646,7 +646,7 @@ class TestGradeReportConditionalContent(TestReportMixin, TestConditionalContent, ...@@ -646,7 +646,7 @@ class TestGradeReportConditionalContent(TestReportMixin, TestConditionalContent,
{ {
self.student_b: { self.student_b: {
u'Grade': '0.0', u'Grade': '0.0',
u'Homework': u'Not Accessible', u'Homework': u'Not Available',
} }
}, },
], ],
......
...@@ -696,7 +696,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent, ...@@ -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 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 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. in the grade report.
""" """
# student A will get 100%, student B will get 50% because # student A will get 100%, student B will get 50% because
...@@ -726,7 +726,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent, ...@@ -726,7 +726,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent,
unicode(self.student_a.id), unicode(self.student_a.id),
self.student_a.email, self.student_a.email,
self.student_a.username, 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( dict(zip(
...@@ -734,7 +734,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent, ...@@ -734,7 +734,7 @@ class TestProblemReportSplitTestContent(TestReportMixin, TestConditionalContent,
[ [
unicode(self.student_b.id), unicode(self.student_b.id),
self.student_b.email, 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 ...@@ -869,19 +869,19 @@ class TestProblemReportCohortedContent(TestReportMixin, ContentGroupTestCase, In
user_grades = [ user_grades = [
{ {
'user': self.staff_user, '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, '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, '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, '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): ...@@ -1581,9 +1581,9 @@ class TestGradeReport(TestReportMixin, InstructorTaskModuleTestCase):
u'Username': self.student.username, u'Username': self.student.username,
u'Grade': '0.13', u'Grade': '0.13',
u'Homework 1: Subsection': '0.5', 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 3: Unattempted': u'Not Attempted',
u'Homework 4: Empty': u'Not Accessible', u'Homework 4: Empty': u'Not Available',
u'Homework (Avg)': '0.125', 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