test: add tests for image_processing field from AI extraction

- Added 11 comprehensive tests for image_processing parsing
- Tests validate crop_bounds structure: {x, y, width, height} all ints >= 0
- Tests validate rotation_degrees: int/float, -360 to +360
- Tests validate confidence: float, 0.0 to 1.0
- Tests graceful handling when image_processing field is missing
- Tests multiple items with image_processing data
- Tests partial data handling (optional fields)
- Tests with both Gemini and Claude providers
- Updated extract_label_info() to preserve and validate image_processing field
- All tests passing, no regressions
This commit is contained in:
2026-04-21 18:53:04 +03:00
parent 76fa22bba9
commit ada3669217
5 changed files with 525 additions and 8 deletions

View File

@@ -89,7 +89,8 @@
"Bash(netstat -tulpn)",
"Bash(curl -k -v https://192.168.84.131:8918/users/)",
"Bash(curl -k -s https://192.168.84.131:8918/users/)",
"Bash(grep -E \"\\\\.\\(tsx|ts|jsx|js\\)$\")"
"Bash(grep -E \"\\\\.\\(tsx|ts|jsx|js\\)$\")",
"Bash(pkill -9 -f uvicorn)"
]
}
}