fixup! (WIP) Add tests

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

View file

@ -274,8 +274,16 @@ def test_stores_signatures_updates_last_log_index(valid_signature, mocker, tmp_p
assert f.read() == "100" assert f.read() == "100"
def test_is_update_available_nothing_local(): def test_is_update_available_when_no_local_image(mocker):
pass """
Test that is_update_available returns True when no local image is
currently present.
"""
# Mock container_image_exists to return False
mocker.patch(
"dangerzone.container_utils.get_local_image_digest",
side_effect=dzerrors.ImageNotPresentException,
)
def test_is_update_available_trims(): def test_is_update_available_trims():