Example #1
0
 def test_get_course_average_days_to_complete_for_time_period(self):
     actual = get_course_average_days_to_complete_for_time_period(
         site=self.site,
         start_date=self.data_start_date,
         end_date=self.data_end_date,
         course_id=self.course_overview.id)
     assert actual == self.get_average('average_days_to_complete', int)
Example #2
0
 def test_get_course_average_days_to_complete_for_time_period(self):
     actual = metrics.get_course_average_days_to_complete_for_time_period(
         site=self.alpha_site,
         start_date=self.data_start_date,
         end_date=self.data_end_date,
         course_id=self.alpha_course_overview.id)
     assert actual == self.get_average(self.alpha_course_daily_metrics,
                                       'average_days_to_complete', int)