aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-04-19 15:31:27 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-04-19 15:31:27 +0200
commit60d95733617035f3fde5728e521e642b5f4e8e6c (patch)
tree835e9561fd9f0c4662fa9354b089462a23135b5d /unittest
parentdb34b66fb15e42aaa23eaeaba42bae359e8ea1a4 (diff)
downloadlibnitrokey-60d95733617035f3fde5728e521e642b5f4e8e6c.tar.gz
libnitrokey-60d95733617035f3fde5728e521e642b5f4e8e6c.tar.bz2
Treat all devices with firmware version lower than 20 as Pro device
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py
index 9af67ac..35cc714 100644
--- a/unittest/conftest.py
+++ b/unittest/conftest.py
@@ -86,7 +86,7 @@ def C(request=None):
assert nk_login != 0 # returns 0 if not connected or wrong model or 1 when connected
global device_type
firmware_version = C.NK_get_minor_firmware_version()
- model = 'P' if firmware_version in [7,8] else 'S'
+ model = 'P' if firmware_version < 20 else 'S'
device_type = (model, firmware_version)
print('Connected device: {} {}'.format(model, firmware_version))