def test_initial_grader(self):
     descriptor = get_modulestore(self.course.location).get_item(self.course.location)
     test_grader = CourseGradingModel(descriptor)
     # ??? How much should this test bake in expectations about defaults and thus fail if defaults change?
     self.assertEqual(self.course.location, test_grader.course_location, "Course locations")
     self.assertIsNotNone(test_grader.graders, "No graders")
     self.assertIsNotNone(test_grader.grade_cutoffs, "No cutoffs")
Пример #2
0
 def setUp(self):
     """Compute the url to use in tests"""
     super(CourseGraderUpdatesTest, self).setUp()
     self.url = self.course_locator.url_reverse('settings/grading')
     self.starting_graders = CourseGradingModel(self.course).graders
Пример #3
0
 def test_initial_grader(self):
     test_grader = CourseGradingModel(self.course)
     self.assertIsNotNone(test_grader.graders)
     self.assertIsNotNone(test_grader.grade_cutoffs)
Пример #4
0
 def setUp(self):
     """Compute the url to use in tests"""
     super(CourseGraderUpdatesTest, self).setUp()
     self.url = get_url(self.course.id, 'grading_handler')
     self.starting_graders = CourseGradingModel(self.course).graders