blob: 91ba988f3886435eb4ba05a49589c0685df0ada2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import pytest
from cryptography.hazmat.backends.interfaces import (
HMACBackend, CipherBackend, HashBackend
)
from .skip_check import skip_check
def pytest_generate_tests(metafunc):
from cryptography.hazmat.backends import _ALL_BACKENDS
if "backend" in metafunc.fixturenames:
metafunc.parametrize("backend", _ALL_BACKENDS)
@pytest.mark.trylast
def pytest_runtest_setup(item):
skip_check('hmac', HMACBackend, item)
skip_check('cipher', CipherBackend, item)
skip_check('hash', HashBackend, item)
|