def test_get_active_learner_ids_today(self): """ TODO: in the setup, add student module records modified in the past and add filtering to the expected_count here """ recs = pipeline_cdm.get_active_learner_ids_today( course_id=self.course_overview.id, date_for=self.today) assert recs.count() == len(self.course_enrollments)
def test_get_active_learner_ids_today(self): """ TODO: in the setup, add student module records modified in the past and add filtering to the expected_count here """ with mock.patch.dict('figures.helpers.settings.FEATURES', {'FIGURES_IS_MULTISITE': False}): recs = pipeline_cdm.get_active_learner_ids_today( course_id=self.course_overview.id, date_for=self.today) assert recs.count() == len(self.course_enrollments)