Skip to content

Commit

Permalink
feat: unused status function
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharis278 committed Sep 27, 2024
1 parent c23cacb commit ac25fea
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions edx_name_affirmation/statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,6 @@ class VerifiedNameStatus(str, Enum):
APPROVED = "approved"
DENIED = "denied"

@classmethod
def trigger_state_change_from_idv(cls, idv_status):
"""
Return the translated IDV status if it should trigger a state transition, otherwise return None
"""
# mapping from an idv status (key) to it's associated verified name status (value). We only want to
# include idv statuses that would cause a status transition for a verified name
idv_state_transition_mapping = {
'created': cls.PENDING,
'submitted': cls.SUBMITTED,
'approved': cls.APPROVED,
'denied': cls.DENIED
}

return idv_state_transition_mapping.get(idv_status, None)

@classmethod
def trigger_state_change_from_proctoring(cls, proctoring_status):
Expand Down

0 comments on commit ac25fea

Please sign in to comment.