def test_get_days_to_complete(self):
        expected = dict(days=self.cert_days_to_complete, errors=[])

        actual = pipeline_cdm.get_days_to_complete(
            course_id=self.course_overview.id, date_for=self.today)

        assert actual == expected
Exemple #2
0
    def test_get_days_to_complete(self, ):
        with mock.patch.dict('figures.helpers.settings.FEATURES',
                             {'FIGURES_IS_MULTISITE': False}):
            expected = dict(days=self.cert_days_to_complete, errors=[])

            actual = pipeline_cdm.get_days_to_complete(
                course_id=self.course_overview.id, date_for=self.today)

            assert actual == expected