make the signature tests pass

This commit is contained in:
Alexis Métaireau 2025-02-25 15:44:46 +01:00
parent 22d01a4045
commit 49c4cee898
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E

View file

@ -236,11 +236,11 @@ def test_store_signatures_with_different_digests(
# Call store_signatures # Call store_signatures
with pytest.raises(errors.SignatureMismatch): with pytest.raises(errors.SignatureMismatch):
store_signatures(signatures, image_digest, TEST_PUBKEY_PATH) store_signatures(signatures, image_digest, TEST_PUBKEY_PATH)
"dangerzone.updater.signatures.get_last_log_index",
# Verify that the signatures file was not created # Verify that the signatures file was not created
assert not (signatures_path / f"{image_digest}.json").exists() assert not (signatures_path / f"{image_digest}.json").exists()
# Verify that the log index file was not updated
assert not (signatures_path / "last_log_index").exists() assert not (signatures_path / "last_log_index").exists()