From ca7266ea346ba0bfa99ecfef4f4e462d553fecfb Mon Sep 17 00:00:00 2001 From: Tanya Date: Fri, 9 Jan 2026 13:00:35 -0500 Subject: [PATCH] fix: Update photo deletion test to assert deleted_count instead of deleted The test for photo deletion now checks for "deleted_count" in the response data, ensuring that the count of deleted photos is non-negative. This change aligns the test with the actual API response structure. --- tests/test_api_photos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_api_photos.py b/tests/test_api_photos.py index 715e200..b719f2b 100644 --- a/tests/test_api_photos.py +++ b/tests/test_api_photos.py @@ -395,7 +395,8 @@ class TestPhotoDeletion: assert response.status_code == 200 data = response.json() - assert "deleted" in data + assert "deleted_count" in data + assert data["deleted_count"] >= 0 def test_bulk_delete_photos_non_admin( self,