aboutsummaryrefslogtreecommitdiff
path: root/unittest/conftest.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-12-11 10:51:53 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-12-11 10:51:53 +0100
commit17309629889269e99d14b4e880675682d8b6435f (patch)
treeab37c07e186315410d0187b52c4d5b5492555662 /unittest/conftest.py
parent7797c8fb5fa69068dd659c369bc774ca74f592fe (diff)
downloadlibnitrokey-wip-retry_function.tar.gz
libnitrokey-wip-retry_function.tar.bz2
Allow to execute client-supplied function on each retry and cancel with itwip-retry_function
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/conftest.py')
-rw-r--r--unittest/conftest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py
index a53b005..d54a362 100644
--- a/unittest/conftest.py
+++ b/unittest/conftest.py
@@ -56,7 +56,8 @@ def C(request):
print("No library file found")
sys.exit(1)
- C.NK_set_debug(False)
+ C.NK_set_debug(True)
+ C.NK_set_debug_level(4)
nk_login = C.NK_login_auto()
if nk_login != 1:
print('No devices detected!')
@@ -77,7 +78,7 @@ def C(request):
print('Finished')
request.addfinalizer(fin)
- # C.NK_set_debug(True)
- C.NK_set_debug_level(3)
+ C.NK_set_debug(True)
+ C.NK_set_debug_level(4)
return C