Grades cleanup before updating grade report
Remove deprecated SingleSectionGrader. TNL-5987 Remove display_name and module_id from Scores objects Update CourseGradeFactory.__init__ to not be user-specific Update some callers to use CourseGrade class instead of "summary" dict Remove no longer needed course_grades.py module. Renamed django signal from GRADES_UPDATED to COURSE_GRADE_CHANGED
This commit is contained in:
@@ -134,9 +134,9 @@ class TestRescoringTask(TestIntegrationTask):
|
||||
# are in sync.
|
||||
expected_subsection_grade = expected_score
|
||||
|
||||
course_grade = CourseGradeFactory(user).create(self.course)
|
||||
course_grade = CourseGradeFactory().create(user, self.course)
|
||||
self.assertEquals(
|
||||
course_grade.subsection_grade_totals_by_format['Homework'][0].earned,
|
||||
course_grade.graded_subsections_by_format['Homework'][0].graded_total.earned,
|
||||
expected_subsection_grade,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user