Update tests for security and validation improvements

- Adjusted test case for duplicate email registration to assert 400 status and include generic error messaging to prevent user enumeration.
- Annotated invalid phone number example with clarification on cleaning behavior.
- Updated test password to meet enhanced security requirements.
This commit is contained in:
Felipe Cardoso
2025-11-01 04:00:51 +01:00
parent 544be2bea4
commit 3ad48843e4
2 changed files with 9 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ class TestPhoneNumberValidation:
# Completely invalid formats
"++4412345678", # Double plus
"()+41123456", # Misplaced parentheses
# Note: "()+41123456" becomes "+41123456" after cleaning, which is valid
# Empty string
"",