Bumped edx-enterprise version to 1.10.7

Fixed broken unit test

connected COURSE_GRADE_NOW_PASSED at the end

added receiver to signal connect call
This commit is contained in:
Zia Fazal
2019-09-25 14:42:09 +05:00
parent b73979dc72
commit 19436f8d3d
6 changed files with 9 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ from mock import patch
from edx_django_utils.cache import TieredCache
from opaque_keys.edx.keys import CourseKey
from lms.djangoapps.certificates.signals import listen_for_passing_grade
from student.tests.factories import UserFactory
from openedx.core.djangoapps.signals.signals import COURSE_GRADE_NOW_PASSED
from openedx.features.enterprise_support.tests.factories import (
@@ -125,3 +126,4 @@ class EnterpriseSupportSignals(TestCase):
'course_run_id': self.course_id
}
mock_task_apply.assert_called_once_with(kwargs=task_kwargs)
COURSE_GRADE_NOW_PASSED.connect(listen_for_passing_grade, dispatch_uid='new_passing_learner')