Skip to content

Commit 8a367b9

Browse files
Gallery test queries by portal id (membership is portal-keyed)
Follow-through from the portal-keyed gallery fix: the rewritten test_document_list still queried by a free-form tag. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 15b1cba commit 8a367b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/tests/test_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,9 @@ def test_document_list(
14121412
},
14131413
)
14141414
assert response.status_code == 201, response.json()
1415-
response = client.get("/api/documents/list?tags=test")
1415+
# Gallery membership is keyed on the submission's PORTAL, not its
1416+
# free-form tags (see get_document_list) — query by the portal id.
1417+
response = client.get("/api/documents/list?tags=test-portal")
14161418
assert response.status_code == 200
14171419
data = response.json()
14181420
assert len(data) > 0

0 commit comments

Comments
 (0)