From e28ec2c4c4a4c7cf0377009b9d7a953f46edd29e Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 3 Apr 2019 14:51:32 +0900 Subject: [PATCH] tests: Skip Gnuk only tests. --- tests/skip_gnuk_only_tests.py | 6 ++++++ tests/test_005_personalize_admin_less.py | 2 ++ tests/test_016_kdf_single.py | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 tests/skip_gnuk_only_tests.py diff --git a/tests/skip_gnuk_only_tests.py b/tests/skip_gnuk_only_tests.py new file mode 100644 index 0000000..6618a42 --- /dev/null +++ b/tests/skip_gnuk_only_tests.py @@ -0,0 +1,6 @@ +import pytest + +@pytest.fixture(scope="module",autouse=True) +def check_gnuk(card): + if not card.is_gnuk: + pytest.skip("Gnuk only feature", allow_module_level=True) diff --git a/tests/test_005_personalize_admin_less.py b/tests/test_005_personalize_admin_less.py index be47b0f..3f86af6 100644 --- a/tests/test_005_personalize_admin_less.py +++ b/tests/test_005_personalize_admin_less.py @@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from skip_gnuk_only_tests import * + from card_test_personalize_admin_less import * from card_test_personalize_reset import * from card_test_remove_keys import * diff --git a/tests/test_016_kdf_single.py b/tests/test_016_kdf_single.py index ee04fa5..755ba01 100644 --- a/tests/test_016_kdf_single.py +++ b/tests/test_016_kdf_single.py @@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from skip_gnuk_only_tests import * + from card_test_kdf_single import * from card_test_personalize_card import * from card_test_personalize_reset import *