diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2013-12-27 11:09:42 -0500 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2013-12-27 11:09:42 -0500 |
commit | 08adc00087c8fe128abc2317776de1f974f4eed6 (patch) | |
tree | 9baacf858eb2ab752505cec675ddda118ed2f35d /tests/conftest.py | |
parent | cf99cc77f863a7254d449ecb5f80a35ad7db11ab (diff) | |
parent | b645521e84026633f666aa107816ac2fc5e05cc6 (diff) | |
download | cryptography-08adc00087c8fe128abc2317776de1f974f4eed6.tar.gz cryptography-08adc00087c8fe128abc2317776de1f974f4eed6.tar.bz2 cryptography-08adc00087c8fe128abc2317776de1f974f4eed6.zip |
Merge remote-tracking branch 'origin/master' into some-typedef-fixes
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 71662802..e059b630 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 .utils import check_for_iface + + 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): + check_for_iface("hmac", HMACBackend, item) + check_for_iface("cipher", CipherBackend, item) + check_for_iface("hash", HashBackend, item) |