From 49c4cee898a42616886074c2ae15399c4ae571c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 25 Feb 2025 15:44:46 +0100 Subject: [PATCH] make the signature tests pass --- tests/test_signatures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_signatures.py b/tests/test_signatures.py index 7981e93..fd6a977 100644 --- a/tests/test_signatures.py +++ b/tests/test_signatures.py @@ -236,11 +236,11 @@ def test_store_signatures_with_different_digests( # Call store_signatures with pytest.raises(errors.SignatureMismatch): store_signatures(signatures, image_digest, TEST_PUBKEY_PATH) - "dangerzone.updater.signatures.get_last_log_index", + # Verify that the signatures file was not created 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()