mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 12:41:50 +02:00
fixup! (WIP) Add tests
This commit is contained in:
parent
83418f09f2
commit
3e861cc0cd
1 changed files with 2 additions and 2 deletions
|
@ -237,8 +237,8 @@ def test_store_signatures_with_different_digests(
|
||||||
with pytest.raises(errors.SignatureMismatch):
|
with pytest.raises(errors.SignatureMismatch):
|
||||||
store_signatures(signatures, image_digest, TEST_PUBKEY_PATH)
|
store_signatures(signatures, image_digest, TEST_PUBKEY_PATH)
|
||||||
"dangerzone.updater.signatures.get_last_log_index",
|
"dangerzone.updater.signatures.get_last_log_index",
|
||||||
return_value=50,
|
# Verify that the signatures file was not created
|
||||||
)
|
assert not (signatures_path / f"{image_digest}.json").exists()
|
||||||
|
|
||||||
|
|
||||||
def test_stores_signatures_updates_last_log_index():
|
def test_stores_signatures_updates_last_log_index():
|
||||||
|
|
Loading…
Reference in a new issue