From 7aab8b4ae4f5ab1710a985551c4105d608f5b852 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 23 Oct 2014 11:01:25 -0700 Subject: Change how we represented that a test requires a backend. This way is more extensible and requires less maintaince --- tests/test_fernet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_fernet.py') diff --git a/tests/test_fernet.py b/tests/test_fernet.py index 5c630b9e..813ad88f 100644 --- a/tests/test_fernet.py +++ b/tests/test_fernet.py @@ -26,6 +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.primitives.ciphers import algorithms, modes import cryptography_vectors @@ -46,7 +47,7 @@ def test_default_backend(): assert f._backend is default_backend() -@pytest.mark.cipher +@pytest.mark.requires_backend_interface(interface=CipherBackend) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.AES("\x00" * 32), modes.CBC("\x00" * 16) -- cgit v1.2.3