From a5f173f56e037f4f10a18bd0d5a7e316bbbf70c6 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 28 Jul 2016 14:42:53 +0200 Subject: Connect to Nitrokey Storage. Do not authenticate on test start Signed-off-by: Szczepan Zalega --- unittest/test_bindings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py index 19db964..2fd45d9 100644 --- a/unittest/test_bindings.py +++ b/unittest/test_bindings.py @@ -39,8 +39,9 @@ def C(request): C = ffi.dlopen("../build/libnitrokey.so") C.NK_set_debug(False) - C.NK_login('P') - assert C.NK_user_authenticate(DefaultPasswords.USER, DefaultPasswords.USER_TEMP) == DeviceErrorCode.STATUS_OK + C.NK_login('S') + # assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK + # assert C.NK_user_authenticate(DefaultPasswords.USER, DefaultPasswords.USER_TEMP) == DeviceErrorCode.STATUS_OK # C.NK_status() -- cgit v1.2.3