aboutsummaryrefslogtreecommitdiff
path: root/unittest/conftest.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-06-24 11:22:08 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2019-06-24 11:22:08 +0200
commit77f92145ddf80cab397cb7db2c654f384db5401a (patch)
tree29bf4b36e7ade4129efa8d5c78eb3e0bdf5ac2c2 /unittest/conftest.py
parent3ede630625cdc83cde2753897bee260595a5137a (diff)
downloadlibnitrokey-77f92145ddf80cab397cb7db2c654f384db5401a.tar.gz
libnitrokey-77f92145ddf80cab397cb7db2c654f384db5401a.tar.bz2
Add simple CLI tool to enable firmware update mode on NK Storage
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/conftest.py')
-rw-r--r--unittest/conftest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py
index 7a4e2a2..49b4f02 100644
--- a/unittest/conftest.py
+++ b/unittest/conftest.py
@@ -1,5 +1,5 @@
"""
-Copyright (c) 2015-2018 Nitrokey UG
+Copyright (c) 2015-2019 Nitrokey UG
This file is part of libnitrokey.
@@ -31,6 +31,9 @@ basicConfig(format='* %(relativeCreated)6d %(filename)s:%(lineno)d %(message)s',
log = getLogger('conftest')
print = log.debug
+def get_device_type():
+ return device_type
+
def skip_if_device_version_lower_than(allowed_devices):
global device_type