Fix tests for Gnuk emulation (skip test with no KDF setup).

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2021-03-19 17:37:32 +09:00
parent dcef6e0ffa
commit 07be37f45e
11 changed files with 27 additions and 3 deletions

6
tests/skip_if_gnuk.py Normal file
View File

@@ -0,0 +1,6 @@
import pytest
@pytest.fixture(scope="module",autouse=True)
def check_gnuk(card):
if card.is_gnuk:
pytest.skip("Gnuk has no support for those features", allow_module_level=True)