thermograph/backend/tests/web
Emi Griffith ca589545a6 Return 422 for malformed date query param in grade/day endpoints
api_grade and api_day parsed the `date` query param with an unguarded
datetime.date.fromisoformat, so a malformed or non-calendar value
(notadate, 2026-13-40, 2026-02-30) raised ValueError and surfaced as a
500. Route the parse through a _parse_target_date helper that maps the
ValueError to HTTPException(422); absent/empty and valid dates behave
exactly as before. Add a route-level test asserting 422 on bad dates.
2026-07-24 15:43:35 -07:00
..
test_api.py Return 422 for malformed date query param in grade/day endpoints 2026-07-24 15:43:35 -07:00
test_gzip.py Subtree-merge thermograph-backend (origin/main) into backend/ 2026-07-22 22:01:11 -07:00
test_homepage.py Subtree-merge thermograph-backend (origin/main) into backend/ 2026-07-22 22:01:11 -07:00
test_lake_app.py Own /state in the image; lake cache degrades instead of failing (#25) 2026-07-23 22:55:41 +00:00
test_request_logging.py Stop logging /healthz + internal SSR hop, truncate logged IPs (#35) 2026-07-24 19:28:47 +00:00
test_role.py Subtree-merge thermograph-backend (origin/main) into backend/ 2026-07-22 22:01:11 -07:00