Thumbnails generated and displayed in the front end

This commit is contained in:
2025-10-07 00:16:49 +02:00
parent 79bfae4ba8
commit 477d6bf538
19 changed files with 860 additions and 54 deletions

View File

@@ -618,7 +618,7 @@ class TestCreatePdf:
assert updated_doc.pdf_file_hash == pdf_hash
# Verify convert_to_pdf was called with correct arguments
doc_path = document_service._get_document_path(created_doc.file_hash)
doc_path = document_service.get_document_path(created_doc.file_hash)
mock_convert_to_pdf.assert_called_once_with(doc_path, document_service.temp_folder)
# Verify content exists on disk
@@ -694,7 +694,7 @@ class TestCreatePdf:
)
# Simulate missing content by removing file
file_path = document_service._get_document_path(created_doc.file_hash)
file_path = document_service.get_document_path(created_doc.file_hash)
os.remove(file_path)
# Execute