Skip to content

Add tests for the images API #1083

@PranjaliBhardwaj

Description

@PranjaliBhardwaj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions