Commit Graph

1 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 5c18f4c02b feat(tests): add comprehensive unit tests for Tier 1 high-impact files
Add comprehensive unit tests bringing coverage from ~10% to 70-83%:
- app/api/files.py: 11.75% → 69.69% (+58%)
- app/views/files.py: 8.77% → 82.14% (+73%)
- app/api/google_drive.py: 9.45% → 83.64% (+74%)
- app/api/onedrive.py: 10.51% → 82.88% (+72%)

Test coverage includes:
- All API endpoints with success and error cases
- Input validation and edge cases
- Proper mocking of external dependencies (DB, Celery, OAuth)
- Error handling and exception paths
- Helper functions and utility methods

All tests follow existing patterns and use @pytest.mark.unit decorator.

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