From fcaf9761d1a2a570b2249c2ef3fff322dbb0b37b Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 30 Jan 2014 11:23:57 -0800 Subject: Initial work on a prioritized multibackend for which implements CipherBackend --- tests/conftest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3