diff options
-rw-r--r-- | tests/test_fernet.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_fernet.py b/tests/test_fernet.py index 813ad88f..1aa04171 100644 --- a/tests/test_fernet.py +++ b/tests/test_fernet.py @@ -26,7 +26,7 @@ import six from cryptography.fernet import Fernet, InvalidToken, MultiFernet from cryptography.hazmat.backends import default_backend -from cryptography.hazmat.backends.interfaces import CipherBackend +from cryptography.hazmat.backends.interfaces import CipherBackend, HMACBackend from cryptography.hazmat.primitives.ciphers import algorithms, modes import cryptography_vectors @@ -48,6 +48,7 @@ def test_default_backend(): @pytest.mark.requires_backend_interface(interface=CipherBackend) +@pytest.mark.requires_backend_interface(interface=HMACBackend) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.AES("\x00" * 32), modes.CBC("\x00" * 16) @@ -118,6 +119,8 @@ class TestFernet(object): Fernet(base64.urlsafe_b64encode(b"abc"), backend=backend) +@pytest.mark.requires_backend_interface(interface=CipherBackend) +@pytest.mark.requires_backend_interface(interface=HMACBackend) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.AES("\x00" * 32), modes.CBC("\x00" * 16) |