AOSSIE-Org / AOSSIE-Org/PictoPy

Add tests for the images API

未關閉
#1,083 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
283
分支
679
平均合併
7 天 2 小時
30 天內合併 PR
3

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。