https://github.com/py-pdf/pypdf/commit/7678efff383926b8f086b461bde71395c9130907.patch From 7678efff383926b8f086b461bde71395c9130907 Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Tue, 12 Nov 2024 10:59:53 -0500 Subject: [PATCH] TST: Add missing @pytest.mark.samples decorators (#2940) --- tests/test_writer.py | 1 + tests/test_xmp.py | 1 + 2 files changed, 2 insertions(+) diff --git tests/test_writer.py tests/test_writer.py index 09f24244b..04b94d540 100644 --- tests/test_writer.py +++ tests/test_writer.py @@ -1697,6 +1697,7 @@ def test_watermark_rendering(tmp_path): assert image_similarity(png_path, target_png_path) >= 0.95 +@pytest.mark.samples @pytest.mark.skipif(GHOSTSCRIPT_BINARY is None, reason="Requires Ghostscript") def test_watermarking_reportlab_rendering(tmp_path): """ diff --git tests/test_xmp.py tests/test_xmp.py index a64289c06..9c01cfd8a 100644 --- tests/test_xmp.py +++ tests/test_xmp.py @@ -42,6 +42,7 @@ def test_read_xmp_metadata_samples(src): } +@pytest.mark.samples def test_writer_xmp_metadata_samples(): writer = PdfWriter(SAMPLE_ROOT / "020-xmp/output_with_metadata_pymupdf.pdf") xmp = writer.xmp_metadata