Skip to content

Commit

Permalink
feat(enrollment): implement case of no expiration and already enrolled
Browse files Browse the repository at this point in the history
this was previously the 409 HTTP status code scenario.
the view test for this case now passes.
  • Loading branch information
angela-tran committed Mar 27, 2024
1 parent 106691e commit fb0e08f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion benefits/enrollment/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def index(request):
else:
if has_no_expiration_date:
# no action, return success
pass
return _success(request, group_id)
else:
# remove expiration date, return success
pass
Expand Down Expand Up @@ -178,6 +178,11 @@ def _is_within_reenrollment_window(concession_expiry, enrollment_reenrollment_da
pass


def _success(request, group_id):
analytics.returned_success(request, group_id)
return success(request)


@decorator_from_middleware(EligibleSessionRequired)
def retry(request):
"""View handler for a recoverable failure condition."""
Expand Down

0 comments on commit fb0e08f

Please sign in to comment.