Skip to content

Commit 542b5be

Browse files
fix: Redact SSO PII before deletion
1 parent 417aa3d commit 542b5be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openedx/core/djangoapps/user_api/management/tests/test_retire_user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_retire_with_username_email_userfile(setup_retirement_states): # lint-a
115115
def test_retire_user_redacts_sso_pii_before_deletion(setup_retirement_states): # lint-amnesty, pylint: disable=redefined-outer-name, unused-argument # noqa: F811
116116
"""
117117
Test that SSO PII is redacted before UserSocialAuth records are deleted during retirement.
118-
118+
119119
This test verifies the order of operations by capturing the record's state
120120
at the moment of deletion to ensure it was already redacted.
121121
"""
@@ -156,7 +156,7 @@ def capture_state_and_delete(self):
156156

157157
# Verify deletion completed
158158
assert not UserSocialAuth.objects.filter(id=social_auth_id).exists()
159-
159+
160160
retired_user_status = UserRetirementStatus.objects.filter(original_username=user.username).first()
161161
assert retired_user_status is not None
162162
assert retired_user_status.original_email == '[email protected]'

0 commit comments

Comments
 (0)