Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 29, 2024
1 parent f8529b0 commit e18d75f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openedx/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,11 @@ def test_enroll_in_edx_course_runs(settings, mocker, user):
"""Tests that enroll_in_edx_course_runs uses the EdxApi client to enroll in course runs"""
settings.OPENEDX_SERVICE_WORKER_API_TOKEN = "mock_api_token" # noqa: S105
mock_client = mocker.MagicMock()
enroll_return_values = [{"is_active": True}, {"is_active": False}, {"is_active": True}]
enroll_return_values = [
{"is_active": True},
{"is_active": False},
{"is_active": True},
]
mock_client.enrollments.create_student_enrollment = mocker.Mock(
side_effect=enroll_return_values
)
Expand Down

0 comments on commit e18d75f

Please sign in to comment.