diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-12-11 10:51:53 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-12-11 10:51:53 +0100 |
commit | 17309629889269e99d14b4e880675682d8b6435f (patch) | |
tree | ab37c07e186315410d0187b52c4d5b5492555662 /unittest | |
parent | 7797c8fb5fa69068dd659c369bc774ca74f592fe (diff) | |
download | libnitrokey-17309629889269e99d14b4e880675682d8b6435f.tar.gz libnitrokey-17309629889269e99d14b4e880675682d8b6435f.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')
-rw-r--r-- | unittest/conftest.py | 7 |
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 |