generated from john/python-template
Remove references to "v4" throughout the code and documentation
Quality Gate / gate (push) Failing after 11s
Quality Gate / gate (push) Failing after 11s
This commit is contained in:
@@ -78,7 +78,7 @@ async def test_document_print_preview_and_safe_media_route(app_client):
|
||||
assert str(media_path) not in response.text
|
||||
assert str(pdf_path) not in response.text
|
||||
|
||||
media_response = client.get(f"/api/v4/documents/{document_id}/sources/{source_id}/media")
|
||||
media_response = client.get(f"/api/documents/{document_id}/sources/{source_id}/media")
|
||||
assert media_response.status_code == 200
|
||||
assert media_response.headers["content-type"] == "image/png"
|
||||
assert "content-disposition" not in media_response.headers
|
||||
@@ -111,5 +111,5 @@ async def test_document_source_media_rejects_cross_document_access(app_client):
|
||||
other_id = other.id
|
||||
source_id = source.id
|
||||
|
||||
response = client.get(f"/api/v4/documents/{other_id}/sources/{source_id}/media")
|
||||
response = client.get(f"/api/documents/{other_id}/sources/{source_id}/media")
|
||||
assert response.status_code == 404
|
||||
|
||||
Reference in New Issue
Block a user