fixup! (WIP) some more tests

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

View file

@ -214,8 +214,24 @@ def test_store_signatures_with_different_digests(
"""Test that store_signatures raises an error when a signature's digest doesn't match.""" """Test that store_signatures raises an error when a signature's digest doesn't match."""
def test_store_signatures_digest_mismatch(): image_digest = "sha256:123456"
pass
# Mock the signatures path
signatures_path = tmp_path / "signatures"
signatures_path.mkdir()
mocker.patch("dangerzone.updater.signatures.SIGNATURES_PATH", signatures_path)
# Mock get_log_index_from_signatures
mocker.patch(
"dangerzone.updater.signatures.get_log_index_from_signatures",
return_value=100,
)
# Mock get_last_log_index
mocker.patch(
"dangerzone.updater.signatures.get_last_log_index",
return_value=50,
)
def test_stores_signatures_updates_last_log_index(): def test_stores_signatures_updates_last_log_index():