Scope backend checks to backend behavior and retain ownership regression coverage

This commit is contained in:
pewdiepie-archdaemon
2026-10-26 16:53:52 +00:00
parent d9797ce10f
commit 020fe02aa0
4 changed files with 1 additions and 580 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ def test_gallery_image_endpoint_lookups_are_owner_scoped():
assert body.count("_first_visible_image_endpoint(db, user)") >= 4
assert body.count("_visible_image_endpoint_for_base(db,") >= 2
assert "def _current_user_is_admin" in body
assert body.count('raise HTTPException(403, "Choose a registered image endpoint")') == 2
assert body.count('raise HTTPException(403, "Choose a registered image endpoint")') == 3
for marker in (
"async def gallery_ai_upscale",
"async def gallery_style_transfer",