fix: Update HTTP status code for unprocessable entity and improve test database setup
All checks were successful
Run Tests / test (push) Successful in 1m51s

This commit is contained in:
2025-10-25 19:26:43 +02:00
parent 5b1322ddbc
commit 75f533b87b
2 changed files with 4 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ def update_css_settings(payload: CSSSettingsPayload, db: Session = Depends(get_d
]
except ValueError as exc:
raise HTTPException(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
detail=str(exc),
) from exc
return CSSSettingsResponse(