diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-08 09:21:21 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-08 09:21:21 -0600 |
commit | e4f7874cb91d6dd6a092cb41f93a7db36a947d7c (patch) | |
tree | 8bb25d5e5a3a21ec77602c6ba5647d3a914c2f60 | |
parent | 96f31fd81b9d5f29adf5290e1630a79d89039538 (diff) | |
download | cryptography-e4f7874cb91d6dd6a092cb41f93a7db36a947d7c.tar.gz cryptography-e4f7874cb91d6dd6a092cb41f93a7db36a947d7c.tar.bz2 cryptography-e4f7874cb91d6dd6a092cb41f93a7db36a947d7c.zip |
pytest marks for RSA
-rw-r--r-- | pytest.ini | 1 | ||||
-rw-r--r-- | tests/conftest.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -5,4 +5,5 @@ markers = hash: this test requires a backend providing HashBackend hmac: this test requires a backend providing HMACBackend pbkdf2hmac: this test requires a backend providing PBKDF2HMACBackend + rsa: this test requires a backend providing RSABackend supported: parametrized test requiring only_if and skip_message diff --git a/tests/conftest.py b/tests/conftest.py index ecad1b23..64982efd 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,7 +2,7 @@ import pytest from cryptography.hazmat.backends import _ALL_BACKENDS from cryptography.hazmat.backends.interfaces import ( - HMACBackend, CipherBackend, HashBackend, PBKDF2HMACBackend + HMACBackend, CipherBackend, HashBackend, PBKDF2HMACBackend, RSABackend ) from .utils import check_for_iface, check_backend_support, select_backends @@ -22,6 +22,7 @@ def pytest_runtest_setup(item): check_for_iface("cipher", CipherBackend, item) check_for_iface("hash", HashBackend, item) check_for_iface("pbkdf2hmac", PBKDF2HMACBackend, item) + check_for_iface("rsa", RSABackend, item) check_backend_support(item) |