generated from john/python-template
This commit is contained in:
@@ -42,7 +42,7 @@ async def test_document_print_preview_and_safe_media_route(app_client):
|
||||
page_number=1,
|
||||
upload_name="print-page.png",
|
||||
filename="print-page.png",
|
||||
file_path=str(media_path),
|
||||
file_path="documents/print-page.png",
|
||||
file_hash="a" * 64,
|
||||
file_size_bytes=media_path.stat().st_size,
|
||||
raw_transcription="line one\nline two",
|
||||
@@ -54,7 +54,7 @@ async def test_document_print_preview_and_safe_media_route(app_client):
|
||||
page_number=2,
|
||||
upload_name="print-page.pdf",
|
||||
filename="print-page.pdf",
|
||||
file_path=str(pdf_path),
|
||||
file_path="documents/print-page.pdf",
|
||||
file_hash="c" * 64,
|
||||
file_size_bytes=pdf_path.stat().st_size,
|
||||
raw_transcription="PDF source",
|
||||
@@ -102,7 +102,7 @@ async def test_document_source_media_rejects_cross_document_access(app_client):
|
||||
page_number=1,
|
||||
upload_name="other.png",
|
||||
filename="other.png",
|
||||
file_path=str(media_path),
|
||||
file_path="documents/other.png",
|
||||
file_hash="b" * 64,
|
||||
file_size_bytes=media_path.stat().st_size,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user