diff options
-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) |