diff --git a/tests/test_enterprise/test_utils.py b/tests/test_enterprise/test_utils.py index 0a10770b2..bf1cee17c 100644 --- a/tests/test_enterprise/test_utils.py +++ b/tests/test_enterprise/test_utils.py @@ -495,8 +495,7 @@ def expected_email_item(user, activation_links): assert email_items == expected_email_items @ddt.data(True, False) - @mock.patch("enterprise.utils.CourseEnrollmentAllowed") - def test_ensure_course_enrollment_is_allowed(self, invite_only, mock_cea): + def test_ensure_course_enrollment_is_allowed(self, invite_only): """ Test that the enrollment allow endpoint is called for the "invite_only" courses. """