예제 #1
0
 def test_get_average_days_to_complete(self):
     actual = pipeline_cdm.get_average_days_to_complete(
         course_id=self.course_overview.id, date_for=self.today)
     assert actual == self.expected_avg_cert_days_to_complete
예제 #2
0
 def test_get_average_days_to_complete(self):
     with mock.patch.dict('figures.helpers.settings.FEATURES',
                          {'FIGURES_IS_MULTISITE': False}):
         actual = pipeline_cdm.get_average_days_to_complete(
             course_id=self.course_overview.id, date_for=self.today)
         assert actual == self.expected_avg_cert_days_to_complete