aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_hkdf_vectors.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-23 11:01:25 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-23 11:01:25 -0700
commit7aab8b4ae4f5ab1710a985551c4105d608f5b852 (patch)
treefc0e9096c155374259b88f3d3404083f992e8836 /tests/hazmat/primitives/test_hkdf_vectors.py
parenta05af52d1f0fba90030b62185d38523119d68b42 (diff)
downloadcryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.tar.gz
cryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.tar.bz2
cryptography-7aab8b4ae4f5ab1710a985551c4105d608f5b852.zip
Change how we represented that a test requires a backend.
This way is more extensible and requires less maintaince
Diffstat (limited to 'tests/hazmat/primitives/test_hkdf_vectors.py')
-rw-r--r--tests/hazmat/primitives/test_hkdf_vectors.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_hkdf_vectors.py b/tests/hazmat/primitives/test_hkdf_vectors.py
index 1e67234f..f2399a38 100644
--- a/tests/hazmat/primitives/test_hkdf_vectors.py
+++ b/tests/hazmat/primitives/test_hkdf_vectors.py
@@ -17,6 +17,7 @@ import os
import pytest
+from cryptography.hazmat.backends.interfaces import HMACBackend
from cryptography.hazmat.primitives import hashes
from .utils import generate_hkdf_test
@@ -27,7 +28,7 @@ from ...utils import load_nist_vectors
only_if=lambda backend: backend.hmac_supported(hashes.SHA1()),
skip_message="Does not support SHA1."
)
-@pytest.mark.hmac
+@pytest.mark.requires_backend_interface(interface=HMACBackend)
class TestHKDFSHA1(object):
test_HKDFSHA1 = generate_hkdf_test(
load_nist_vectors,
@@ -41,7 +42,7 @@ class TestHKDFSHA1(object):
only_if=lambda backend: backend.hmac_supported(hashes.SHA256()),
skip_message="Does not support SHA256."
)
-@pytest.mark.hmac
+@pytest.mark.requires_backend_interface(interface=HMACBackend)
class TestHKDFSHA256(object):
test_HKDFSHA1 = generate_hkdf_test(
load_nist_vectors,