Skip to content

Commit

Permalink
fix ruff violations
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 committed Jan 8, 2024
1 parent 553ed6e commit 316471c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_user_access_permissions__dict_handling():
}
with pytest.raises(
ValueError,
match=f'Unknown dictionary keys: {unknown!r}'
match=f"Unknown dictionary keys: {unknown!r}"
):
UserAccessPermissions.from_dict(data)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,15 +733,15 @@ def test_decode_permissions():
print_["print"] = True
with pytest.raises(
DeprecationWarning,
match="decode_permissions is deprecated and will be removed in pypdf 5.0.0. Use user_access_permissions instead",
match="decode_permissions is deprecated and will be removed in pypdf 5.0.0. Use user_access_permissions instead", # noqa: E501
):
assert reader.decode_permissions(4) == print_

modify = base.copy()
modify["modify"] = True
with pytest.raises(
DeprecationWarning,
match="decode_permissions is deprecated and will be removed in pypdf 5.0.0. Use user_access_permissions instead",
match="decode_permissions is deprecated and will be removed in pypdf 5.0.0. Use user_access_permissions instead", # noqa: E501
):
assert reader.decode_permissions(8) == modify

Expand Down

0 comments on commit 316471c

Please sign in to comment.