Add API tests for export endpoints (CSV and PDF) #1668

Merged
AI-Manager merged 1 commits from feature/1655-export-endpoint-tests into main 2026-04-20 23:04:27 +00:00

1 Commits

Author SHA1 Message Date
agent-company 44a162056d Add API tests for export endpoints (CSV and PDF)
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>
2026-04-20 19:11:42 +00:00