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 May 16, 2024
1 parent 243d45d commit 0391589
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
9 changes: 1 addition & 8 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@
"hashed_secret": "b235838f76594bf21886c6eec9c06a207e9ec5ce",
"is_verified": false,
"line_number": 35
},
{
"type": "Secret Keyword",
"filename": "pytest.ini",
"hashed_secret": "e035cdf1f57666859ec5949ee389d479d03ea1e3",
"is_verified": false,
"line_number": 36
}
],
"sheets/dev-setup.md": [
Expand Down Expand Up @@ -284,5 +277,5 @@
}
]
},
"generated_at": "2024-04-30T20:24:02Z"
"generated_at": "2024-05-16T18:08:17Z"
}
3 changes: 1 addition & 2 deletions courseware/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,7 @@ def unenroll_edx_course_run(run_enrollment):
edx_client = get_edx_api_service_client()
try:
deactivated_enrollment = edx_client.enrollments.deactivate_enrollment(
run_enrollment.run.courseware_id,
username=run_enrollment.user.username
run_enrollment.run.courseware_id, username=run_enrollment.user.username
)
except HTTPError as exc:
raise EdxApiEnrollErrorException(run_enrollment.user, run_enrollment.run, exc) # noqa: B904, TRY200
Expand Down
2 changes: 1 addition & 1 deletion courseware/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def test_unenroll_edx_course_run(mocker):
courseware_id = run_enrollment.run.courseware_id
username = run_enrollment.user.username
enroll_return_value = mocker.Mock(
json={"course_id": courseware_id, 'user': username}
json={"course_id": courseware_id, "user": username}
)
mock_client.enrollments.deactivate_enrollment = mocker.Mock(
return_value=enroll_return_value
Expand Down

0 comments on commit 0391589

Please sign in to comment.