File: 0006-Skip-tests-that-require-a-certificate-that-will-expi.patch

package info (click to toggle)
fpdf2 2.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 53,544 kB
  • sloc: python: 38,982; sh: 84; makefile: 12
file content (37 lines) | stat: -rw-r--r-- 1,169 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Elena ``of Valhalla'' Grandi <valhalla@debian.org>
Date: Wed, 24 Jan 2024 10:41:25 +0100
Subject: Skip tests that require a certificate that will expire.

Forwarded: not-needed
---
 test/signing/test_sign.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/signing/test_sign.py b/test/signing/test_sign.py
index 6cc50e6..fd6b861 100644
--- a/test/signing/test_sign.py
+++ b/test/signing/test_sign.py
@@ -1,5 +1,7 @@
 from pathlib import Path
 
+import pytest
+
 
 from fpdf import FPDF
 from test.conftest import assert_pdf_equal, check_signature, EPOCH
@@ -9,6 +11,7 @@ HERE = Path(__file__).resolve().parent
 TRUSTED_CERT_PEMS = (HERE / "signing.crt.pem",)
 
 
+@pytest.mark.skip(reason="requires a certificate that will expire, causing FTBFS")
 def test_sign_pkcs12(tmp_path):
     pdf = FPDF()
     pdf.set_creation_date(EPOCH)
@@ -18,6 +21,7 @@ def test_sign_pkcs12(tmp_path):
     check_signature(pdf, TRUSTED_CERT_PEMS)
 
 
+@pytest.mark.skip(reason="requires a certificate that will expire, causing FTBFS")
 def test_sign_pkcs12_with_link(tmp_path):
     "This test ensures that Signature & Link annotations can be combined"
     pdf = FPDF()