From e6ac60265eecb86b11761c6695172924f36a1ea4 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 24 Oct 2014 07:50:30 -0700 Subject: Fixed #1436 -- mark the multifernet tests as requiring the backends they need --- tests/test_fernet.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3