Files
gh-christianlouis-docuelevate/tests
copilot-swe-agent[bot] b1005bdac3 Add comprehensive file upload tests
- Created test_file_upload.py with 19 tests covering all aspects of file upload functionality
- Tests include: valid file uploads (PDF, images, office docs, text, CSV)
- Invalid file handling (oversized, executables, empty files, no file)
- Security tests (path traversal, special characters)
- Error handling (disk write failures, celery failures)
- Filename handling (UUID generation, no extension)
- MIME type detection
- Modified conftest.py to mock Celery module to prevent Redis connection during tests
- All 19 tests passing

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 19:39:25 +00:00
..