fix(user): remove email from accounts
All checks were successful
State Corp Backend CI/CD / Quality gate (push) Successful in 2m45s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Successful in 4m32s
State Corp Backend CI/CD / Release dev (push) Has been skipped
State Corp Backend CI/CD / Refresh and release internal main (push) Has been skipped
State Corp Backend CI/CD / Release customer main (push) Has been skipped

This commit is contained in:
Aleksandr Meshchryakov
2026-10-01 10:20:01 +02:00
parent 7484b3c2b6
commit 2bfbb133bc
24 changed files with 248 additions and 307 deletions

View File

@@ -99,9 +99,7 @@ class UserDeletionTest(APITestCase):
reverse("api_v1:user:admin_users"), {"search": self.user.username}
)
self.assertEqual(response.data["count"], 0)
replacement = UserFactory.create_user(
username=self.user.username, email=self.user.email
)
replacement = UserFactory.create_user(username=self.user.username)
self.assertNotEqual(replacement.pk, self.user_id)
def test_deletion_revokes_access_and_refresh_even_without_outstanding_row(self):