spmkey/pico-openpgp/tests/skip_if_no_kdf_support.py

7 lines
183 B
Python

import pytest
@pytest.fixture(scope="module",autouse=True)
def check_kdf_support(card):
if not card.kdf_supported:
pytest.skip("No KDF support", allow_module_level=True)