From 43cb02bccab6a8adbdff5faefcf09144c16d45df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 25 Feb 2025 15:44:08 +0100 Subject: [PATCH] fixup! (WIP) Add tests --- tests/test_signatures.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_signatures.py b/tests/test_signatures.py index d285763..e00818f 100644 --- a/tests/test_signatures.py +++ b/tests/test_signatures.py @@ -244,6 +244,11 @@ def test_store_signatures_with_different_digests( assert not (signatures_path / "last_log_index").exists() +def test_stores_signatures_updates_last_log_index(valid_signature, mocker, tmp_path): + """Test that store_signatures updates the last log index file.""" + signatures = [valid_signature] + # Extract the digest from the signature + image_digest = Signature(valid_signature).manifest_digest def test_get_file_digest(): pass