From 4621902a2b58b9cd70e58a6f2cf4d032209da08e 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_signatures.py b/tests/test_signatures.py index dd49d3a..9740da2 100644 --- a/tests/test_signatures.py +++ b/tests/test_signatures.py @@ -255,6 +255,9 @@ def test_stores_signatures_updates_last_log_index(valid_signature, mocker, tmp_p signatures_path.mkdir() mocker.patch("dangerzone.updater.signatures.SIGNATURES_PATH", signatures_path) + # Create an existing last_log_index file with a lower value + with open(signatures_path / "last_log_index", "w") as f: + f.write("50") def test_convert_oci_images_signatures(): pass