aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-24 22:23:53 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-24 22:23:53 -0600
commit7e4bc6d87741e8469ffcd00dc8004875ec9a95fe (patch)
tree1f9e0b9541737e2a9695e0b89495d64e52dc4c0b /tests/conftest.py
parent2a710fd725c1012170a101db4d7511d250cb31f0 (diff)
downloadcryptography-7e4bc6d87741e8469ffcd00dc8004875ec9a95fe.tar.gz
cryptography-7e4bc6d87741e8469ffcd00dc8004875ec9a95fe.tar.bz2
cryptography-7e4bc6d87741e8469ffcd00dc8004875ec9a95fe.zip
add test marks for various backend functionality
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 71662802..91ba988f 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,5 +1,21 @@
+import pytest
+
+from cryptography.hazmat.backends.interfaces import (
+ HMACBackend, CipherBackend, HashBackend
+)
+
+from .skip_check import skip_check
+
+
def pytest_generate_tests(metafunc):
from cryptography.hazmat.backends import _ALL_BACKENDS
if "backend" in metafunc.fixturenames:
metafunc.parametrize("backend", _ALL_BACKENDS)
+
+
+@pytest.mark.trylast
+def pytest_runtest_setup(item):
+ skip_check('hmac', HMACBackend, item)
+ skip_check('cipher', CipherBackend, item)
+ skip_check('hash', HashBackend, item)