Add test for fail to make squeak with contact profile (#1578)

This commit is contained in:
Jonathan Zernik 2021-10-12 14:45:14 -07:00 committed by GitHub
parent c48450598b
commit bae8063c28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -292,7 +292,9 @@ def test_make_squeak(
squeak_content,
):
created_squeak, created_secret_key = squeak_core.make_squeak(
signing_profile, squeak_content)
signing_profile,
squeak_content,
)
decrypted_created_content = squeak_core.get_decrypted_content(
created_squeak,
created_secret_key,
@ -301,6 +303,18 @@ def test_make_squeak(
assert decrypted_created_content == squeak_content
def test_make_squeak_with_contact_profile(
squeak_core,
contact_profile,
squeak_content,
):
with pytest.raises(Exception):
created_squeak, created_secret_key = squeak_core.make_squeak(
contact_profile,
squeak_content,
)
def test_get_block_header(
squeak_core,
squeak,