Adding tests for OpenPGP.

All tests are taken from gnuk. Reader is migrated from pyusb to pyscard.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-02-02 23:08:49 +01:00
parent 32868dfc31
commit 2c24c348b5
129 changed files with 6171 additions and 0 deletions

6
tests/skip_if_kdfreq.py Normal file
View File

@@ -0,0 +1,6 @@
import pytest
@pytest.fixture(scope="module",autouse=True)
def check_kdfreq(card):
if card.kdf_required:
pytest.skip("Token requires KDF setup", allow_module_level=True)