Skip to content

feat: Add unit tests for pdf-export spec#100

Open
rubenvdlinde wants to merge 1 commit intodevelopmentfrom
feature/pdf-export
Open

feat: Add unit tests for pdf-export spec#100
rubenvdlinde wants to merge 1 commit intodevelopmentfrom
feature/pdf-export

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

Summary

  • Add 5 unit tests verifying CharactersController.downloadPdf()
  • Tests cover DocuDesk dependency check (PDF-020, PDF-021)
  • Tests cover error handling for missing character/template (PDF-030, PDF-031)
  • Tests cover PDF rendering failure (PDF-032)
  • Tests verify successful DataDownloadResponse return (PDF-001, PDF-008)

Test plan

  • All 5 unit tests pass locally
  • All error paths verified with correct HTTP status codes

Add 5 unit tests verifying CharactersController.downloadPdf():
- Returns 424 when DocuDesk not installed (PDF-020, PDF-021)
- Returns 404 when character not found (PDF-030)
- Returns 404 when template not found (PDF-031)
- Returns 500 when PDF rendering fails (PDF-032)
- Returns DataDownloadResponse on success (PDF-001, PDF-008)
Base automatically changed from feature/enrich-openspec-specs to development March 23, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant