def test_get_num_learners_completed(self): actual = pipeline_cdm.get_num_learners_completed( course_id=self.course_overview.id, date_for=self.today) assert actual == len(self.generated_certificates)
def test_get_num_learners_completed(self): with mock.patch.dict('figures.helpers.settings.FEATURES', {'FIGURES_IS_MULTISITE': False}): actual = pipeline_cdm.get_num_learners_completed( course_id=self.course_overview.id, date_for=self.today) assert actual == len(self.generated_certificates)