Merge pull request #259 from christianlouis/copilot/fix-pypdf2-module-issue
fix(test): update PyPDF2 patch references to pypdf in path traversal security test
This commit is contained in:
@@ -144,8 +144,8 @@ class TestEmbedMetadataPathTraversal:
|
|||||||
@patch("app.tasks.embed_metadata_into_pdf.SessionLocal")
|
@patch("app.tasks.embed_metadata_into_pdf.SessionLocal")
|
||||||
@patch("app.tasks.embed_metadata_into_pdf.log_task_progress")
|
@patch("app.tasks.embed_metadata_into_pdf.log_task_progress")
|
||||||
@patch("app.tasks.embed_metadata_into_pdf.finalize_document_storage")
|
@patch("app.tasks.embed_metadata_into_pdf.finalize_document_storage")
|
||||||
@patch("PyPDF2.PdfReader")
|
@patch("pypdf.PdfReader")
|
||||||
@patch("PyPDF2.PdfWriter")
|
@patch("pypdf.PdfWriter")
|
||||||
def test_embed_metadata_full_flow_with_malicious_filename(
|
def test_embed_metadata_full_flow_with_malicious_filename(
|
||||||
self,
|
self,
|
||||||
mock_pdf_writer,
|
mock_pdf_writer,
|
||||||
|
|||||||
Reference in New Issue
Block a user