aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-09-19 16:51:14 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-09-19 16:51:14 +0200
commit6a56cc8d5dffa41f0e5327fade6edf1c69a1abcc (patch)
tree3042c63605092c3cf99e447803523446c1e5cecc
parent81d61227e3a8d48c1dcc04f945a0888a7fdfdace (diff)
downloadlibnitrokey-6a56cc8d5dffa41f0e5327fade6edf1c69a1abcc.tar.gz
libnitrokey-6a56cc8d5dffa41f0e5327fade6edf1c69a1abcc.tar.bz2
Tests: log connected library Git version
-rw-r--r--unittest/conftest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py
index 17d9ef5..88eab81 100644
--- a/unittest/conftest.py
+++ b/unittest/conftest.py
@@ -98,6 +98,7 @@ def get_library(request, allow_offline=False):
model = C.NK_get_device_model()
model = 'P' if model == 1 else 'S' if model == 2 else 'U'
device_type = (model, firmware_version)
+ print('Connected library: {}'.format(gs(C.NK_get_library_version())))
print('Connected device: {} {}'.format(model, firmware_version))
# assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK