summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-01-15 15:18:47 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-01-15 15:18:47 +0100
commitdfc773f1cac61af0bb513777dd75ba3487802ab1 (patch)
treebee8b12b643cb65d7e8732a3e4cff3bc81300b22 /unittest
parentfbc4b7c715bc6d65e7f7c26b1e9d6c77f9d1f61c (diff)
downloadlibnitrokey-dfc773f1cac61af0bb513777dd75ba3487802ab1.tar.gz
libnitrokey-dfc773f1cac61af0bb513777dd75ba3487802ab1.tar.bz2
CI: install git to get the library version on build
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_offline.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/unittest/test_offline.py b/unittest/test_offline.py
index ae2638f..51fe67d 100644
--- a/unittest/test_offline.py
+++ b/unittest/test_offline.py
@@ -24,16 +24,16 @@ import re
def test_offline(C_offline):
+ C_offline.NK_set_debug(False)
+ C_offline.NK_set_debug_level(4)
+ assert C_offline.NK_get_major_library_version() == 3
+ assert C_offline.NK_get_minor_library_version() >= 3
+ assert C_offline.NK_login_auto() == 0
+
libnk_version = gs(C_offline.NK_get_library_version())
assert libnk_version
print(libnk_version)
# v3.4.1-29-g1f3d
search = re.search(b'v\d\.\d(\.\d)?', libnk_version)
- assert search is not None
-
- C_offline.NK_set_debug(False)
- C_offline.NK_set_debug_level(4)
- assert C_offline.NK_get_major_library_version() == 3
- assert C_offline.NK_get_minor_library_version() >= 3
- assert C_offline.NK_login_auto() == 0
+ assert search is not None \ No newline at end of file