You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add tests for auto-validated attributes by pydantic. For example, if we give 8 for the "day" attribute in the AbsenceModel, it should return 422 Unprocessable Entity and a message.
Example Models:
class AbsenceModel(BaseModel):
week: int = Field(..., ge=0)
day: int = Field(..., ge=0, le=4)
hour: int = Field(..., ge=0, le=15)
isLab: int = Field(..., ge=0, le=1)
We are missing tests for the REST API.
The text was updated successfully, but these errors were encountered: