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 38
|
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 e82c661..16d18da 100644
--- a/test/signing/test_sign.py
+++ b/test/signing/test_sign.py
@@ -1,6 +1,8 @@
from pathlib import Path
from sys import version_info
+import pytest
+
from pytest import mark
from fpdf import FPDF
@@ -11,6 +13,7 @@ HERE = Path(__file__).resolve().parent
TRUSTED_CERT_PEMS = (HERE / "signing-certificate.crt",)
+@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)
@@ -20,6 +23,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()
|