fixup! (WIP) Add tests

This commit is contained in:
Alexis Métaireau 2025-02-25 15:44:08 +01:00
parent fb89f00c73
commit 83418f09f2

View file

@ -233,6 +233,9 @@ def test_store_signatures_with_different_digests(
# Mock get_last_log_index
mocker.patch(
# Call store_signatures
with pytest.raises(errors.SignatureMismatch):
store_signatures(signatures, image_digest, TEST_PUBKEY_PATH)
"dangerzone.updater.signatures.get_last_log_index",
return_value=50,
)