forked from 0xWheatyz/SPARC
Add API tests for export endpoints (CSV and PDF) #1668
Reference in New Issue
Block a user
Delete Branch "feature/1655-export-endpoint-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GET /export/{company_name}(CSV) andGET /export/{company_name}/pdfendpointsCloses #1655
Test plan
pytest tests/ -vpassesruff check tests/passes🤖 Generated with Claude Code
Covers GET /export/{company_name} and /export/{company_name}/pdf with 13 test cases: successful export, 404 on missing data, auth enforcement, filename sanitization, XML-special character handling in PDF, and multi-row output validation. Closes leeworks-agents/SPARC#1655 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>