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
fb89f00c73
commit
83418f09f2
1 changed files with 3 additions and 0 deletions
|
@ -233,6 +233,9 @@ def test_store_signatures_with_different_digests(
|
|||
|
||||
# Mock get_last_log_index
|
||||
mocker.patch(
|
||||
# Call store_signatures
|
||||
with pytest.raises(errors.SignatureMismatch):
|
||||
store_signatures(signatures, image_digest, TEST_PUBKEY_PATH)
|
||||
"dangerzone.updater.signatures.get_last_log_index",
|
||||
return_value=50,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue