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: