diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-24 07:50:30 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-24 07:50:30 -0700 |
commit | e6ac60265eecb86b11761c6695172924f36a1ea4 (patch) | |
tree | 4dcd4e6bc213df3eaae00d0738e4ae08b4618e0e /tests/test_fernet.py | |
parent | 2f2346344ae5561bc9b106cbb452efeebe3cdc45 (diff) | |
download | cryptography-e6ac60265eecb86b11761c6695172924f36a1ea4.tar.gz cryptography-e6ac60265eecb86b11761c6695172924f36a1ea4.tar.bz2 cryptography-e6ac60265eecb86b11761c6695172924f36a1ea4.zip |
Fixed #1436 -- mark the multifernet tests as requiring the backends they need
Diffstat (limited to 'tests/test_fernet.py')
-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) |