Skip to content

Commit

Permalink
Fix GHA test
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Nov 30, 2024
1 parent 1e7b4be commit fd7f682
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/pe/test_authenticode.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,14 @@ def test_issue_912():
def test_verification_flags_str():
flag = lief.PE.Signature.VERIFICATION_FLAGS.BAD_DIGEST | \
lief.PE.Signature.VERIFICATION_FLAGS.CERT_FUTURE
assert str(flag) == "VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE"
assert repr(flag) == "VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE"
assert str(flag) in {
"VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE",
"VERIFICATION_FLAGS.CERT_FUTURE|BAD_DIGEST",
}
assert repr(flag) in {
"VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE",
"VERIFICATION_FLAGS.CERT_FUTURE|BAD_DIGEST",
}
assert str(lief.PE.Signature.VERIFICATION_FLAGS.from_value(0)) == "VERIFICATION_FLAGS.OK"

def test_ms_manifest_binary_id():
Expand Down

0 comments on commit fd7f682

Please sign in to comment.