997 B
997 B
title, status, type, created_at, updated_at, parent
| title | status | type | created_at | updated_at | parent |
|---|---|---|---|---|---|
| Unit tests for services layer | draft | task | 2026-02-10T09:33:08Z | 2026-02-10T09:33:08Z | nuzlocke-tracker-yzpb |
Write unit tests for the business logic in backend/src/app/services/. Currently this is the families.py service which handles Pokemon evolution family resolution.
Checklist
- Test family resolution with simple linear evolution chains (e.g. A → B → C)
- Test family resolution with branching evolutions (e.g. Eevee)
- Test family resolution with region-specific evolutions
- Test edge cases: single-stage Pokemon, circular references (if possible), missing data
Notes
services/families.pycontains the core logic for resolving Pokemon evolution families- These tests may need mock database sessions or in-memory data depending on how the service queries data
- If the service methods take a DB session, mock it; if they operate on data objects, pass test data directly