diff --git a/tests/test_enterprise/api/test_views.py b/tests/test_enterprise/api/test_views.py index fa380974d3..631465641d 100644 --- a/tests/test_enterprise/api/test_views.py +++ b/tests/test_enterprise/api/test_views.py @@ -4512,7 +4512,6 @@ def test_bulk_enrollment_in_bulk_courses_existing_users( mock_update_or_create_enrollment.return_value = True mock_get_course_details.return_value.__getitem__.return_value.invitation_only = False - user_one = factories.UserFactory(is_active=True) user_two = factories.UserFactory(is_active=True) @@ -5001,6 +5000,7 @@ def test_bulk_enrollment_invitation_only( }, ] } + def enroll(): self.client.post( settings.TEST_SERVER + reverse(