Chris Coutinho
|
c35e94b0bc
|
test(api): add unit tests for PDF preview management endpoint
Add comprehensive unit tests for the /api/v1/pdf-preview endpoint:
- Parameter validation (file_path, page, scale)
- OAuth token authentication
- PDF rendering with PyMuPDF
- Error handling (file not found, invalid page, corrupted PDF)
- Edge cases (URL-encoded paths, boundary values, missing config)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-26 20:24:33 +01:00 |
|