Skip to content

Commit

Permalink
When deferring enrollment set to verified (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav authored Aug 21, 2023
1 parent cffd289 commit 34ca74b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion courses/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def defer_enrollment(
user,
[to_run],
keep_failed_enrollments=keep_failed_enrollments,
mode=from_enrollment.enrollment_mode,
mode=EDX_ENROLLMENT_VERIFIED_MODE,
)
if not enroll_success and not keep_failed_enrollments:
raise Exception(
Expand Down
2 changes: 1 addition & 1 deletion courses/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ def test_defer_enrollment(
existing_enrollment.user,
[target_run],
keep_failed_enrollments=keep_failed_enrollments,
mode=existing_enrollment.enrollment_mode,
mode=EDX_ENROLLMENT_VERIFIED_MODE,
)
patched_deactivate_enrollments.assert_called_once_with(
existing_enrollment,
Expand Down

0 comments on commit 34ca74b

Please sign in to comment.