Skip to content

Commit

Permalink
Add reason
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jul 3, 2022
1 parent 2dc61c1 commit 95dd8fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_encryption(name, requres_pycryptodome):
("r6-both-passwords.pdf", "foo", "bar"),
],
)
@pytest.mark.skipif(not HAS_PYCRYPTODOME)
@pytest.mark.skipif(not HAS_PYCRYPTODOME, reason="No pycryptodome")
def test_both_password(name, user_passwd, owner_passwd):
from PyPDF2 import PasswordType

Expand All @@ -103,7 +103,7 @@ def test_both_password(name, user_passwd, owner_passwd):
("crazyones-encrypted-256.pdf", "password"),
],
)
@pytest.mark.skipif(not HAS_PYCRYPTODOME)
@pytest.mark.skipif(not HAS_PYCRYPTODOME, reason="No pycryptodome")
def test_get_page_of_encrypted_file_new_algorithm(pdffile, password):
"""
Check if we can read a page of an encrypted file.
Expand All @@ -128,7 +128,7 @@ def test_get_page_of_encrypted_file_new_algorithm(pdffile, password):
),
],
)
@pytest.mark.skipif(not HAS_PYCRYPTODOME)
@pytest.mark.skipif(not HAS_PYCRYPTODOME, reason="No pycryptodome")
def test_encryption_merge(names):
pdf_merger = PyPDF2.PdfMerger()
files = [os.path.join(RESOURCE_ROOT, "encryption", x) for x in names]
Expand Down

0 comments on commit 95dd8fa

Please sign in to comment.