fix(test): update PyPDF2 patch references to pypdf in path traversal security test

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-12 03:19:32 +00:00
parent 29381adf4f
commit 07c240df99
+2 -2
View File
@@ -144,8 +144,8 @@ class TestEmbedMetadataPathTraversal:
@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.finalize_document_storage")
@patch("PyPDF2.PdfReader")
@patch("PyPDF2.PdfWriter")
@patch("pypdf.PdfReader")
@patch("pypdf.PdfWriter")
def test_embed_metadata_full_flow_with_malicious_filename(
self,
mock_pdf_writer,