Skip to content

Commit 4fbc0d0

Browse files
committed
test_package: avoid get() when we know key is present
Signed-off-by: William Woodruff <[email protected]>
1 parent 2ffbb0f commit 4fbc0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def test_metadata_dictionary_values(gpg_signature, attestation):
317317

318318
# Attestations
319319
if attestation:
320-
assert result.get("attestations") == json.dumps(package.attestations)
320+
assert result["attestations"] == json.dumps(package.attestations)
321321
else:
322322
assert "attestations" not in result
323323

0 commit comments

Comments
 (0)