style: apply ruff auto-fix
- Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -130,12 +130,14 @@ class TestExtractMetadataFromFile:
|
|||||||
# Create a test PDF with metadata
|
# Create a test PDF with metadata
|
||||||
writer = pypdf.PdfWriter()
|
writer = pypdf.PdfWriter()
|
||||||
writer.add_blank_page(width=100, height=100)
|
writer.add_blank_page(width=100, height=100)
|
||||||
writer.add_metadata({
|
writer.add_metadata(
|
||||||
|
{
|
||||||
"/Title": "Test Title",
|
"/Title": "Test Title",
|
||||||
"/Author": "Test Author",
|
"/Author": "Test Author",
|
||||||
"/Subject": "Test Document",
|
"/Subject": "Test Document",
|
||||||
"/Keywords": "test, metadata, pypdf"
|
"/Keywords": "test, metadata, pypdf",
|
||||||
})
|
}
|
||||||
|
)
|
||||||
with open(file_path, "wb") as f:
|
with open(file_path, "wb") as f:
|
||||||
writer.write(f)
|
writer.write(f)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user