Thumbnails generated and displayed in the front end
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user