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
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