1.0 KiB
1.0 KiB
title, status, type, created_at, updated_at, parent
| title | status | type | created_at | updated_at | parent |
|---|---|---|---|---|---|
| Integration tests for Genlockes & Bosses API | draft | task | 2026-02-10T09:33:26Z | 2026-02-10T09:33:26Z | nuzlocke-tracker-yzpb |
Write integration tests for the genlocke challenge and boss battle API endpoints.
Checklist
- Test genlocke CRUD operations (create, list, get, update, delete)
- Test leg management (add/remove legs to a genlocke)
- Test Pokemon transfers between genlocke legs
- Test boss battle CRUD (create, list, update, delete per game)
- Test boss battle results per run (record win/loss)
- Test stats endpoint for run statistics
- Test export endpoint
- Test error cases (invalid transfers, boss results for wrong game, etc.)
Notes
- Genlocke endpoints:
backend/src/app/api/genlockes.py - Boss endpoints:
backend/src/app/api/bosses.py - Stats endpoints:
backend/src/app/api/stats.py - Export endpoints:
backend/src/app/api/export.py - Genlocke tests require multiple runs as fixtures