aboutsummaryrefslogtreecommitdiff
path: root/unittest/conftest.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-05-24 15:23:39 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-05-24 15:23:39 +0200
commitaee920b21d3951d2166ff73a533461e1bdd16e7f (patch)
treed36609694406dc00a8aa0784ca5c6b091220c86c /unittest/conftest.py
parente91e21d5aa6c885fcb0c04ea130c93b72ce9a92b (diff)
parentd5afa492be65f509345617f139c1600980bb6cce (diff)
downloadlibnitrokey-aee920b21d3951d2166ff73a533461e1bdd16e7f.tar.gz
libnitrokey-aee920b21d3951d2166ff73a533461e1bdd16e7f.tar.bz2
Merge branch 'tests_update_Pro_v0.9'
Add tests for authorization issue https://github.com/Nitrokey/nitrokey-pro-firmware/issues/45
Diffstat (limited to 'unittest/conftest.py')
-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))