Add integration tests for Genlockes & Bosses API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 13:21:32 +01:00
parent 34835abe0c
commit ee5bf03f19
2 changed files with 605 additions and 10 deletions

View File

@@ -1,10 +1,11 @@
---
# nuzlocke-tracker-9c66
title: Integration tests for Genlockes & Bosses API
status: draft
status: completed
type: task
priority: normal
created_at: 2026-02-10T09:33:26Z
updated_at: 2026-02-10T09:33:26Z
updated_at: 2026-02-21T12:20:37Z
parent: nuzlocke-tracker-yzpb
---
@@ -12,14 +13,14 @@ 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.)
- [x] Test genlocke CRUD operations (create, list, get, update, delete)
- [x] Test leg management (add/remove legs to a genlocke)
- [x] Test Pokemon transfers between genlocke legs
- [x] Test boss battle CRUD (create, list, update, delete per game)
- [x] Test boss battle results per run (record win/loss)
- [x] Test stats endpoint for run statistics
- [x] Test export endpoint
- [x] Test error cases (invalid transfers, boss results for wrong game, etc.)
## Notes