AOSSIE-Org / AOSSIE-Org/PictoPy

Add tests for the images API

Aperta
#1,083 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
283
Fork
679
Merge medio
7g 2h
PR unite (30g)
3

Descrizione

There are backend tests for albums, face clusters, folders, and user preferences, but none for the images routes in backend/app/routes/images.py.
work: Add backend/tests/test_images.py that:
Uses the same style as test_albums.py.
Covers at least:
GET / (and optionally the tagged query).
POST /toggle-favourite (success and “image not found” or error path).
This improves coverage and protects the images API from regressions.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.