aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-30 11:23:57 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-30 11:23:57 -0800
commitfcaf9761d1a2a570b2249c2ef3fff322dbb0b37b (patch)
tree664e0177944e56fd8e373971afe8f4137f24cbe1 /tests
parent78ff4ee986bfad020610f2eeb458547cc373034b (diff)
downloadcryptography-fcaf9761d1a2a570b2249c2ef3fff322dbb0b37b.tar.gz
cryptography-fcaf9761d1a2a570b2249c2ef3fff322dbb0b37b.tar.bz2
cryptography-fcaf9761d1a2a570b2249c2ef3fff322dbb0b37b.zip
Initial work on a prioritized multibackend for which implements CipherBackend
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index ecad1b23..00c44ca9 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -4,13 +4,16 @@ from cryptography.hazmat.backends import _ALL_BACKENDS
from cryptography.hazmat.backends.interfaces import (
HMACBackend, CipherBackend, HashBackend, PBKDF2HMACBackend
)
+from cryptography.hazmat.backends.multibackend import PrioritizedMultiBackend
from .utils import check_for_iface, check_backend_support, select_backends
def pytest_generate_tests(metafunc):
names = metafunc.config.getoption("--backend")
- selected_backends = select_backends(names, _ALL_BACKENDS)
+ selected_backends = select_backends(
+ names, _ALL_BACKENDS + [PrioritizedMultiBackend(_ALL_BACKENDS)]
+ )
if "backend" in metafunc.fixturenames:
metafunc.parametrize("backend", selected_backends)