From e4f7874cb91d6dd6a092cb41f93a7db36a947d7c Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 8 Feb 2014 09:21:21 -0600 Subject: pytest marks for RSA --- pytest.ini | 1 + tests/conftest.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 2a1b6e9f..3f65e30e 100644 --- a/pytest.ini +++ b/pytest.ini @@ -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) -- cgit v1.2.3