Skip to content

Commit

Permalink
test_package: avoid get() when we know key is present
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@yossarian.net>
  • Loading branch information
woodruffw committed May 1, 2024
1 parent 2ffbb0f commit 4fbc0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def test_metadata_dictionary_values(gpg_signature, attestation):

# Attestations
if attestation:
assert result.get("attestations") == json.dumps(package.attestations)
assert result["attestations"] == json.dumps(package.attestations)
else:
assert "attestations" not in result

Expand Down

0 comments on commit 4fbc0d0

Please sign in to comment.