From 3c86635f0f81228a21497b6a8551a3aa74f320fa Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sun, 29 May 2022 10:54:31 +0200 Subject: [PATCH] Adjust should_fail --- tests/test_reader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_reader.py b/tests/test_reader.py index 13c38fb29..7e16d9d66 100644 --- a/tests/test_reader.py +++ b/tests/test_reader.py @@ -255,9 +255,9 @@ def test_issue297(): @pytest.mark.parametrize( - ("password", "shouldFail"), [("test", False), ("qwerty", True)] + ("password", "should_fail"), [("test", False), ("qwerty", True)] ) -def test_get_page_of_encrypted_file(password, shouldFail): +def test_get_page_of_encrypted_file(password, should_fail): """ Check if we can read a page of an encrypted file. @@ -265,7 +265,7 @@ def test_get_page_of_encrypted_file(password, shouldFail): IndexError for get_page() of decrypted file """ path = os.path.join(RESOURCE_ROOT, "encrypted-file.pdf") - if shouldFail: + if should_fail: with pytest.raises(PdfReadError): PdfReader(path, password=password) else: