aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_pro.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-05-24 15:22:48 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-05-24 15:22:48 +0200
commitd5afa492be65f509345617f139c1600980bb6cce (patch)
treed36609694406dc00a8aa0784ca5c6b091220c86c /unittest/test_pro.py
parentf3ebcb225d924df1a9f7761ee31d180d11b8cc0d (diff)
downloadlibnitrokey-d5afa492be65f509345617f139c1600980bb6cce.tar.gz
libnitrokey-d5afa492be65f509345617f139c1600980bb6cce.tar.bz2
Skip test for devices with firmware lower than v0.9
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_pro.py')
-rw-r--r--unittest/test_pro.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittest/test_pro.py b/unittest/test_pro.py
index 5ce1e24..fb936f8 100644
--- a/unittest/test_pro.py
+++ b/unittest/test_pro.py
@@ -579,6 +579,8 @@ def test_get_code_user_authorize(C):
@pytest.mark.otp
def test_authorize_issue_admin(C):
+ skip_if_device_version_lower_than({'S': 43, 'P': 9})
+
assert C.NK_lock_device() == DeviceErrorCode.STATUS_OK
assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK
@@ -592,6 +594,8 @@ def test_authorize_issue_admin(C):
@pytest.mark.otp
def test_authorize_issue_user(C):
+ skip_if_device_version_lower_than({'S': 43, 'P': 9}) # issue fixed in Pro v0.9, Storage version chosen arbitrary
+
assert C.NK_lock_device() == DeviceErrorCode.STATUS_OK
assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK